From c8e5b45dc89f2e7c49b32c42c53eb25accb74411 Mon Sep 17 00:00:00 2001 From: Ovahlord Date: Tue, 20 Mar 2018 11:37:22 +0100 Subject: [PATCH] Core/Spells: fixed a derpy code issue in mana tide totem script --- src/server/scripts/Spells/spell_shaman.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/server/scripts/Spells/spell_shaman.cpp b/src/server/scripts/Spells/spell_shaman.cpp index 4195b10165a..d78325f4ad2 100644 --- a/src/server/scripts/Spells/spell_shaman.cpp +++ b/src/server/scripts/Spells/spell_shaman.cpp @@ -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