Fixed warning

This commit is contained in:
joschiwald
2017-04-27 19:35:22 +02:00
parent 66744c4b4c
commit 037ffdf609
4 changed files with 9 additions and 5 deletions

View File

@@ -1170,7 +1170,7 @@ class spell_pri_t5_heal_2p_bonus : public SpellScriptLoader
{
if (HealInfo* healInfo = eventInfo.GetHealInfo())
if (Unit* healTarget = healInfo->GetTarget())
// @todo: fix me later if (healInfo->GetEffectiveHeal())
if (healInfo->GetEffectiveHeal())
if (healTarget->GetHealth() >= healTarget->GetMaxHealth())
return true;