aboutsummaryrefslogtreecommitdiff
path: root/src/server/scripts/Spells
diff options
context:
space:
mode:
authorShauren <shauren.trinity@gmail.com>2021-03-02 21:32:48 +0100
committerShauren <shauren.trinity@gmail.com>2021-03-02 21:32:48 +0100
commit624881bef5c90a91e4c59e5bf404d8775c2ca55d (patch)
tree168fae708e082ffceb296747ef1b282e73bc4d35 /src/server/scripts/Spells
parent49532eda5f247c4c3c2c1f899ee63c0a8d01e76e (diff)
Core/Spells: Refactor Player::ApplySpellMod to take SpellInfo argument instead of just spell id
Diffstat (limited to 'src/server/scripts/Spells')
-rw-r--r--src/server/scripts/Spells/spell_warlock.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/scripts/Spells/spell_warlock.cpp b/src/server/scripts/Spells/spell_warlock.cpp
index c8ef3fdf238..4f401a5823b 100644
--- a/src/server/scripts/Spells/spell_warlock.cpp
+++ b/src/server/scripts/Spells/spell_warlock.cpp
@@ -373,7 +373,7 @@ class spell_warl_health_funnel : public SpellScriptLoader
uint32 damage = caster->CountPctFromMaxHealth(aurEff->GetBaseAmount());
if (Player* modOwner = caster->GetSpellModOwner())
- modOwner->ApplySpellMod(GetId(), SPELLMOD_COST, damage);
+ modOwner->ApplySpellMod(GetSpellInfo(), SPELLMOD_COST, damage);
SpellNonMeleeDamage damageInfo(caster, caster, GetSpellInfo(), GetAura()->GetSpellVisual(), GetSpellInfo()->SchoolMask, GetAura()->GetCastGUID());
damageInfo.periodicLog = true;