Sentry Totem can be unsummoned by totem timers opcode

Signed-off-by: dr.skull <dr.skull@centrum.sk>
This commit is contained in:
dr.skull
2012-08-23 17:46:14 +02:00
parent 85ed0e32a9
commit 58c9d7188f

View File

@@ -514,8 +514,8 @@ void WorldSession::HandleTotemDestroyed(WorldPacket& recvPacket)
return;
Creature* totem = GetPlayer()->GetMap()->GetCreature(_player->m_SummonSlot[slotId]);
// Don't unsummon sentry totem
if (totem && totem->isTotem() && totem->GetEntry() != SENTRY_TOTEM_ENTRY)
if (totem && totem->isTotem())
totem->ToTotem()->UnSummon();
}