Core/Spells: fixed a derpy code issue in mana tide totem script

This commit is contained in:
Ovahlord committed 2018-03-20 11:37:22 +01:00
1 parent 157719d4b0
commit c8e5b45dc8
1 file changed
+1 -2
+1 -2
View File
@@ -1054,8 +1054,7 @@ class spell_sha_mana_tide_totem : public SpellScriptLoader
// @TODO: Exclude the "short term" buffs from the stat value
if (Unit* caster = GetUnitOwner())
if (Unit* owner = caster->GetCharmerOrOwner())
if (Unit* owner = caster->GetOwner())
amount = CalculatePct(owner->GetStat(STAT_SPIRIT), amount);
amount = CalculatePct(owner->GetStat(STAT_SPIRIT), amount);
}
void Register() override