diff options
Diffstat (limited to 'src/game/SpellAuras.cpp')
-rw-r--r-- | src/game/SpellAuras.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/game/SpellAuras.cpp b/src/game/SpellAuras.cpp index e24f3862c4b..30cbdc13ac8 100644 --- a/src/game/SpellAuras.cpp +++ b/src/game/SpellAuras.cpp @@ -2446,11 +2446,12 @@ void AuraEffect::HandleAuraDummy(bool apply, bool Real) if( GetId()==24658 ) { uint32 spellId = 24659; - if (apply) + if (apply && caster) { const SpellEntry *spell = sSpellStore.LookupEntry(spellId); if (!spell) return; + for (int i=0; i < spell->StackAmount; ++i) caster->CastSpell(m_target, spell->Id, true, NULL, NULL, GetCasterGUID()); return; @@ -2462,7 +2463,7 @@ void AuraEffect::HandleAuraDummy(bool apply, bool Real) if( GetId()==24661 ) { uint32 spellId = 24662; - if (apply) + if (apply && caster) { const SpellEntry *spell = sSpellStore.LookupEntry(spellId); if (!spell) |