Commit 6307bf18e5989389cdf9c8ec369eef16d933b997
Merge branch 'master' into 'master'
Update Wormblight to check if target is summoner of source to decide healing Update Wormblight to check if the target is the summoner of the source to determine healing, rather than checking for the 'worm' attribute granted by the Infestation sustain. Now the talent will only heal the summoner of the worms, as you would expect from the talent description, and will continue healing even if the sustain is no longer active. See merge request !677
Showing
1 changed file
with
1 additions
and
1 deletions
... | ... | @@ -3947,7 +3947,7 @@ newDamageType{ |
3947 | 3947 | state = initState(state) |
3948 | 3948 | useImplicitCrit(src, state) |
3949 | 3949 | local target = game.level.map(x, y, Map.ACTOR) |
3950 | - if target and target:attr("worm") then | |
3950 | + if target and src and src.summoner and target == src.summoner then | |
3951 | 3951 | target:heal(dam / 3, src) |
3952 | 3952 | return -dam |
3953 | 3953 | 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 | ... | ... |
-
Please register or login to post a comment