Scripts/Spells: Corrected the spirit value used in the Mana Tide Totem script.

This commit is contained in:
Subv
2012-10-19 16:16:30 -05:00
parent 2e55abcde4
commit 77a8d6f127

View File

@@ -103,9 +103,10 @@ class spell_sha_mana_tide : public SpellScriptLoader
void CalculateAmount(AuraEffect const* aurEff, int32& amount, bool& /*canBeRecalculated*/)
{
///@TODO: Exclude the "short term" buffs from the stat value
if (Unit* caster = GetCaster())
if (Unit* owner = caster->GetOwner())
amount = CalculatePct(owner->GetCreateStat(STAT_SPIRIT), aurEff->GetAmount());
amount = CalculatePct(owner->GetStat(STAT_SPIRIT), aurEff->GetAmount());
}
void Register()