Skip to content
Snippets Groups Projects
Commit 26022bba authored by dg's avatar dg
Browse files

Psi talents do not always deactivate at 0 energy

Infusions/runes on bosses have longer cooldown


git-svn-id: http://svn.net-core.org/repos/t-engine4@2564 51575b47-30f0-44d4-a5cc-537603b46e54
parent 64ee992f
No related branches found
No related tags found
No related merge requests found
......@@ -214,7 +214,7 @@ function _M:act()
if self.mana < 1 or self.stamina < 1 or self.psi < 1 then
for tid, _ in pairs(self.sustain_talents) do
local t = self:getTalentFromId(tid)
if (t.sustain_mana and self.mana < 1) or (t.sustain_stamina and self.stamina < 1) or (t.sustain_psi and self.psi < 1) then
if (t.sustain_mana and self.mana < 1) or (t.sustain_stamina and self.stamina < 1) then
self:forceUseTalent(tid, {ignore_energy=true})
elseif (t.sustain_psi and self.psi < 1) and t.remove_on_zero then
self:forceUseTalent(tid, {ignore_energy=true})
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment