fateanother
fateanother copied to clipboard
Gawain R increases damage to ally or decreases damage to enemy if target has negative magic resist
https://github.com/dun1007/fateanother/blob/bf44cdbd721138cddec80eddfd6f4f0452cfbd75/game/dota_addons/fateanother/scripts/vscripts/libraries/util.lua#L1033-L1035
if target:HasModifier("modifier_suns_embrace_ally") then
dmg = dmg * (1-MR)
end
If magic resist is negative (via Rule Breaker or Tamamo W), then damage is increased instead.
https://github.com/dun1007/fateanother/blob/bf44cdbd721138cddec80eddfd6f4f0452cfbd75/game/dota_addons/fateanother/scripts/vscripts/libraries/util.lua#L1055-L1059
if target:HasModifier("modifier_suns_embrace_enemy") then
dmg = dmg + dmg*MR
end
Similarly, if magic resist is negative (with Tamamo W) then damage is decreased.