diff options
author | Faq <ainarsh@gmail.com> | 2012-06-15 01:29:52 +0300 |
---|---|---|
committer | Faq <ainarsh@gmail.com> | 2012-06-15 01:29:52 +0300 |
commit | 67a0e54bb9afc4ddcd4c6c4e47c57cb5079b62af (patch) | |
tree | 8f7ea1ce67e482a378ca1197f70b49ea7346d807 /src | |
parent | ac7485341554d09cf7740b9a2b5a9cf43674710b (diff) |
Correct the amount of dmg absorbed by Anti-magic shell.tibbi
Diffstat (limited to 'src')
-rw-r--r-- | src/server/scripts/Spells/spell_dk.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/server/scripts/Spells/spell_dk.cpp b/src/server/scripts/Spells/spell_dk.cpp index 9051d9510f9..2a414c7c094 100644 --- a/src/server/scripts/Spells/spell_dk.cpp +++ b/src/server/scripts/Spells/spell_dk.cpp @@ -113,8 +113,7 @@ class spell_dk_anti_magic_shell_self : public SpellScriptLoader void CalculateAmount(AuraEffect const* /*aurEff*/, int32 & amount, bool & /*canBeRecalculated*/) { - // Set absorbtion amount to unlimited - amount = -1; + amount = GetCaster()->CountPctFromMaxHealth(hpPct); } void Absorb(AuraEffect* /*aurEff*/, DamageInfo & dmgInfo, uint32 & absorbAmount) |