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

fix

git-svn-id: http://svn.net-core.org/repos/t-engine4@5111 51575b47-30f0-44d4-a5cc-537603b46e54
parent 6234c534
No related branches found
No related tags found
No related merge requests found
......@@ -2480,6 +2480,8 @@ function _M:onTakeoff(o, bypass_set)
end
function _M:checkMindstar(o)
if not o.psiblade_tile or not o.combat then return end
local new
local old
......
......@@ -1074,7 +1074,7 @@ function _M:onWear(o, bypass_set)
if not self.no_power_reset_on_wear then
o:forAllStack(function(so)
if so.power and so:attr("power_regen") then so.power = 0 end
if so.talent_cooldown then self.talents_cd[so.talent_cooldown] = math.max(self.talents_cd[so.talent_cooldown] or 0, math.min(4, math.floor((so.use_power or so.use_talent).power / 5))) end
if so.talent_cooldown then self.talents_cd[so.talent_cooldown] = math.max(self.talents_cd[so.talent_cooldown] or 0, math.min(4, math.floor((so.use_power or so.use_talent or {power=10}).power / 5))) end
end)
end
end
......
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