Skip to content
Snippets Groups Projects
Commit 6debf0d1 authored by Eric Wykoff's avatar Eric Wykoff
Browse files

can't trigger contingency by hitting yourself in the face

parent 334fa4a6
No related branches found
No related tags found
1 merge request!226More fixes
......@@ -91,7 +91,9 @@ newTalent{
no_npc_use = true, -- so rares don't learn useless talents
allow_temporal_clones = true, -- let clones copy it anyway so they can benefit from the effects
on_pre_use = function(self, t, silent) if self ~= game.player and not self:isTalentActive(t) then return false end return true end, -- but don't let them cast it
callbackOnHit = function(self, t, cb)
callbackOnHit = function(self, t, cb, src)
if src == self then return cb.value end
local p = self:isTalentActive(t.id)
local life_after = self.life - cb.value
local cont_trigger = self.max_life * t.getTrigger(self, t)
......
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