Core/Spells: Fix Sentry Totem's bind sight.

This commit is contained in:
kaelima
2011-09-05 15:48:41 +02:00
parent f13f32c972
commit d295bc4d19
@@ -5219,11 +5219,10 @@ 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())
if (Creature* totem = caster->GetMap()->GetCreature(guid))
if (totem->isTotem())
caster->ToPlayer()->CastSpell(totem, 6277, true);
}
}