From 07f3b914260374792fe8b40d590cb24067c87125 Mon Sep 17 00:00:00 2001 From: raczman Date: Sun, 7 Mar 2010 18:30:53 +0100 Subject: Some Creature* casts moved to new ToCreature. Added const Creature* ToCreature() --HG-- branch : trunk --- src/game/SpellHandler.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/game/SpellHandler.cpp') diff --git a/src/game/SpellHandler.cpp b/src/game/SpellHandler.cpp index 99de86f96d7..c3edea12e8a 100644 --- a/src/game/SpellHandler.cpp +++ b/src/game/SpellHandler.cpp @@ -324,7 +324,7 @@ void WorldSession::HandleCastSpellOpcode(WorldPacket& recvPacket) else { // not have spell in spellbook or spell passive and not casted by client - if ((mover->GetTypeId() == TYPEID_UNIT && !((Creature*)mover)->HasSpell(spellId)) || IsPassiveSpell(spellId)) + if ((mover->GetTypeId() == TYPEID_UNIT && !mover->ToCreature()->HasSpell(spellId)) || IsPassiveSpell(spellId)) { //cheater? kick? ban? recvPacket.rpos(recvPacket.wpos()); // prevent spam at ignore packet -- cgit v1.2.3