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

Saves can again shrug off an effect completly, in addition to the duration reduction

git-svn-id: http://svn.net-core.org/repos/t-engine4@4683 51575b47-30f0-44d4-a5cc-537603b46e54
parent 7d1aee89
No related branches found
No related tags found
No related merge requests found
......@@ -3107,6 +3107,12 @@ function _M:on_set_temporary_effect(eff_id, e, p)
if not p.no_ct_effect and not e.no_ct_effect and e.status == "detrimental" then self:crossTierEffect(eff_id, p.apply_power, p.apply_save or save_for_effects[e.type]) end
p.total_dur = p.dur
if e.status == "detrimental" and self:checkHit(save, p.apply_power, 0, 95) then
game.logSeen(self, "#ORANGE#%s shrugs off the effect '%s'!", self.name:capitalize(), e.desc)
p.dur = p.minimum
end
p.apply_power = nil
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