Skip to content

Commit

Permalink
Scripts/Spells: Corrected the spirit value used in the Mana Tide Tote…
Browse files Browse the repository at this point in the history
…m script.
  • Loading branch information
Subv committed Oct 19, 2012
1 parent 2e55abc commit 77a8d6f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/server/scripts/Spells/spell_shaman.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 77a8d6f

Please sign in to comment.