From c4b061e8941172b4669221f5f59ef3615c67186c Mon Sep 17 00:00:00 2001 From: Reamer Date: Sat, 4 Feb 2012 14:01:56 +0100 Subject: [PATCH] [11899] Fix HandleListStabledPetsOpcode to work with spell-access to stable Signed-off-by: Schmoozerd --- src/game/NPCHandler.cpp | 5 ++--- src/shared/revision_nr.h | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/game/NPCHandler.cpp b/src/game/NPCHandler.cpp index f1b4a116f..a167e258c 100644 --- a/src/game/NPCHandler.cpp +++ b/src/game/NPCHandler.cpp @@ -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; } diff --git a/src/shared/revision_nr.h b/src/shared/revision_nr.h index 577580c2c..c703a90f0 100644 --- a/src/shared/revision_nr.h +++ b/src/shared/revision_nr.h @@ -1,4 +1,4 @@ #ifndef __REVISION_NR_H__ #define __REVISION_NR_H__ - #define REVISION_NR "11898" + #define REVISION_NR "11899" #endif // __REVISION_NR_H__