Missing part of the previous commit.

This commit is contained in:
megamage
2011-09-26 09:14:12 -04:00
parent a35deba186
commit 780747f5d3
2 changed files with 3 additions and 0 deletions
+2
View File
@@ -168,6 +168,8 @@ class spell_dk_anti_magic_zone : public SpellScriptLoader
SpellInfo const* talentSpell = sSpellMgr->GetSpellInfo(DK_SPELL_ANTI_MAGIC_SHELL_TALENT);
amount = talentSpell->Effects[EFFECT_0].CalcValue(GetCaster());
Unit* caster = GetCaster();
if(!caster)
return;
if(Player* player = caster->ToPlayer())
amount += int32(2 * player->GetTotalAttackPowerValue(BASE_ATTACK));
}