aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xsrc/server/game/Spells/Auras/SpellAuraEffects.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/server/game/Spells/Auras/SpellAuraEffects.cpp b/src/server/game/Spells/Auras/SpellAuraEffects.cpp
index 0fe54f2f2e8..40dab07b0c9 100755
--- a/src/server/game/Spells/Auras/SpellAuraEffects.cpp
+++ b/src/server/game/Spells/Auras/SpellAuraEffects.cpp
@@ -5219,12 +5219,11 @@ void AuraEffect::HandleAuraDummy(AuraApplication const* aurApp, uint8 mode, bool
{
if (apply)
{
- uint64 guid = caster->m_SummonSlot[3];
- if (guid)
+ if (uint64 guid = caster->m_SummonSlot[4])
{
- Creature* totem = caster->GetMap()->GetCreature(guid);
- if (totem && totem->isTotem())
- caster->ToPlayer()->CastSpell(totem, 6277, true);
+ if (Creature* totem = caster->GetMap()->GetCreature(guid))
+ if (totem->isTotem())
+ caster->ToPlayer()->CastSpell(totem, 6277, true);
}
}
else