Commit 7dc4d49d971a33b03b9a86cc44d457be1a7aae2e

Authored by DarkGod
1 parent 07b7c2d2

Fixed Frigid Plunge to correctly heal minions

... ... @@ -205,7 +205,12 @@ function necroSetupSummon(self, def, x, y, level, turns, no_control)
205 205 m.minion_be_nice = 1
206 206 m.heal = function(self, amt, src)
207 207 if not src or src == self or src.necrotic_minion then return mod.class.NPC.heal(self, amt, src) end
208   - if src.getCurrentTalent and src:getCurrentTalent() and src:getTalentFromId(src:getCurrentTalent()) and not src:getTalentFromId(src:getCurrentTalent()).is_nature then return mod.class.NPC.heal(self, amt, src) end
  208 + if
  209 + (src.getCurrentTalent and src:getCurrentTalent() and src:getTalentFromId(src:getCurrentTalent()) and not src:getTalentFromId(src:getCurrentTalent()).is_nature) or
  210 + src:attr("can_heal_necrotic_minions")
  211 + then
  212 + return mod.class.NPC.heal(self, amt, src)
  213 + end
209 214 game.logSeen(self, "#GREY#%s can not be healed this way!", self:getName():capitalize())
210 215 end
211 216
... ...
... ... @@ -5225,7 +5225,9 @@ local rime_wraith_def = {
5225 5225 pcall(function() DamageType:get(DamageType.COLD).projector(eff.src, m.x, m.y, DamageType.COLD, dam) end)
5226 5226 eff.src:attr("damage_shield_penetrate", -100)
5227 5227 else
  5228 + eff.src:attr("can_heal_necrotic_minions", 1)
5228 5229 m:heal(heal, eff.src)
  5230 + eff.src:attr("can_heal_necrotic_minions", -1)
5229 5231 end
5230 5232 end)
5231 5233 end
... ...