Skip to content
Snippets Groups Projects
Commit 7555f73f authored by Chris Davidson's avatar Chris Davidson
Browse files

Fix explore being used to deactivate Last Stand without triggering the cooldown

parent ef17c79f
No related branches found
No related tags found
1 merge request!555Fixes+Misc
......@@ -311,8 +311,16 @@ newTalent{
cooldown = 8,
sustain_stamina = 30,
tactical = { DEFEND = 3 },
callbackOnRest = function(self, t) self:forceUseTalent(t.id, {ignore_cooldown=true, ignore_energy=true}) end,
callbackOnRun = function(self, t) self:forceUseTalent(t.id, {ignore_cooldown=true, ignore_energy=true}) end,
callbackOnRest = function(self, t) -- Make sure we've actually started resting/running before disabling the sustain
if self.resting.cnt and self.resting.cnt <= 0 then return true end
self:forceUseTalent(t.id, {ignore_energy=true})
return true
end,
callbackOnRun = function(self, t)
if self.running.cnt and self.running.cnt <= 0 then return true end
self:forceUseTalent(t.id, {ignore_energy=true})
return true
end,
no_npc_use = true,
no_energy = true,
on_pre_use = function(self, t, silent) if not self:hasShield() then if not silent then game.logPlayer(self, "You require a weapon and a shield to use this talent.") end return false end return true 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