Correct the amount of dmg absorbed by Anti-magic shell.tibbi

This commit is contained in:
Faq
2012-06-15 01:29:52 +03:00
parent ac74853415
commit 67a0e54bb9

View File

@@ -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)