Fix warning.

This commit is contained in:
Gacko
2017-04-26 20:43:42 +02:00
parent adc7764d73
commit 9386db7d75
+3 -2
View File
@@ -1210,10 +1210,11 @@ class spell_item_crystal_spire_of_karabor : public SpellScriptLoader
bool CheckProc(ProcEventInfo& eventInfo)
{
int32 pct = GetSpellInfo()->GetEffect(EFFECT_0)->CalcValue();
//int32 pct = GetSpellInfo()->GetEffect(EFFECT_0)->CalcValue();
if (HealInfo* healInfo = eventInfo.GetHealInfo())
if (Unit* healTarget = healInfo->GetTarget())
// @todo: fix me if (healTarget->GetHealth() - healInfo->GetEffectiveHeal() <= healTarget->CountPctFromMaxHealth(pct))
// @todo: fix me
//if (healTarget->GetHealth() - healInfo->GetEffectiveHeal() <= healTarget->CountPctFromMaxHealth(pct))
return true;
return false;