Skip to content
Snippets Groups Projects
Commit ee08734a authored by K'van's avatar K'van
Browse files

Update Wormblight / Take 2: It was pointed out that Writhing One relies on the...

Update Wormblight / Take 2: It was pointed out that Writhing One relies on the 'worm' attribute to heal from it's pet's infestation pools and the previous change would have negated that. We restore the check for the attribute to decide healing, but also check the target is an ally. We also move the 'worm' attribute from the sustain to a passive for Reaver's to prevent damage/death from the effect if the sustain is removed.
parent 7ca6947d
No related branches found
No related tags found
No related merge requests found
...@@ -3947,7 +3947,7 @@ newDamageType{ ...@@ -3947,7 +3947,7 @@ newDamageType{
state = initState(state) state = initState(state)
useImplicitCrit(src, state) useImplicitCrit(src, state)
local target = game.level.map(x, y, Map.ACTOR) local target = game.level.map(x, y, Map.ACTOR)
if target and src and src.summoner and target == src.summoner then if target and target:attr("worm") and src and src.reactionToward and src:reactionToward(target) >= 0 then
target:heal(dam / 3, src) target:heal(dam / 3, src)
return -dam return -dam
elseif target and not target.carrion_worm then -- Carrion worms are immune but not healed by the damage, this spams the log so we just don't hit them instead elseif target and not target.carrion_worm then -- Carrion worms are immune but not healed by the damage, this spams the log so we just don't hit them instead
......
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