Turns used up reactivating sustaineds on level up

Where bugs go to lie down and rest

Moderator: Moderator

Post Reply
Message
Author
CheapyPipe
Wayist
Posts: 20
Joined: Thu Jun 17, 2010 1:25 am

Turns used up reactivating sustaineds on level up

#1 Post by CheapyPipe »

Turns are used up when your character deactivates and reactivates sustained abilities following the assignment of attributes after levelling up.

The problem is here:

Code: Select all

    for i, tid in ipairs(reset) do
        local old = self.actor.energy.value
        self.actor:useTalent(tid)
        self.actor.energy.value = old 
        self.actor.talents_cd[tid] = nil 
        self.actor:useTalent(tid)
        self.actor.energy.value = old 
    end
Roughly line 135 of the untouched b5 file "dialogs/LevelupTalentsDialog.lua". The player is still using energy, even though it's being reset.

Post Reply