From d295bc4d19694243109e5c10da432bec68557d61 Mon Sep 17 00:00:00 2001 From: kaelima Date: Mon, 5 Sep 2011 15:48:41 +0200 Subject: Core/Spells: Fix Sentry Totem's bind sight. --- src/server/game/Spells/Auras/SpellAuraEffects.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'src/server') 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 -- cgit v1.2.3