diff options
| author | kaelima <kaelima@live.se> | 2011-09-05 15:48:41 +0200 |
|---|---|---|
| committer | kaelima <kaelima@live.se> | 2011-09-05 15:48:41 +0200 |
| commit | d295bc4d19694243109e5c10da432bec68557d61 (patch) | |
| tree | ffd35067c3fbad5a0d637bb3ba147af10ec8fcbb /src/server | |
| parent | f13f32c972012e33f8cb5e6e049ae6ccd8ad7071 (diff) | |
Core/Spells: Fix Sentry Totem's bind sight.
Diffstat (limited to 'src/server')
| -rwxr-xr-x | src/server/game/Spells/Auras/SpellAuraEffects.cpp | 9 |
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 |
