[11899] Fix HandleListStabledPetsOpcode to work with spell-access to stable

Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>
This commit is contained in:
Reamer 2012-02-04 14:01:56 +01:00 committed by Schmoozerd
parent 35e991d70e
commit c4b061e894
2 changed files with 3 additions and 4 deletions

View file

@ -503,10 +503,9 @@ void WorldSession::HandleListStabledPetsOpcode( WorldPacket & recv_data )
recv_data >> npcGUID;
Creature *unit = GetPlayer()->GetNPCIfCanInteractWith(npcGUID, UNIT_NPC_FLAG_STABLEMASTER);
if (!unit)
if (!CheckStableMaster(npcGUID))
{
DEBUG_LOG( "WORLD: HandleListStabledPetsOpcode - %s not found or you can't interact with him.", npcGUID.GetString().c_str());
SendStableResult(STABLE_ERR_STABLE);
return;
}

View file

@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__
#define __REVISION_NR_H__
#define REVISION_NR "11898"
#define REVISION_NR "11899"
#endif // __REVISION_NR_H__