From 03c65f5a75bdbec91b4121110c0184b0f1dd2ddc Mon Sep 17 00:00:00 2001 From: NoFantasy Date: Wed, 16 Dec 2009 11:11:17 +0100 Subject: [PATCH] [8998] Allow pet guid to have gossip options like creature guid. Signed-off-by: NoFantasy --- src/game/NPCHandler.cpp | 3 ++- src/shared/revision_nr.h | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/game/NPCHandler.cpp b/src/game/NPCHandler.cpp index 80a049303..a489f8bb5 100644 --- a/src/game/NPCHandler.cpp +++ b/src/game/NPCHandler.cpp @@ -306,7 +306,8 @@ void WorldSession::HandleGossipSelectOptionOpcode( WorldPacket & recv_data ) // TODO: determine if scriptCall is needed for GO and also if scriptCall can be same as current, with modified argument WorldObject* - if (IS_CREATURE_GUID(guid)) + // can vehicle have gossip? If so, need check for this also. + if (IS_CREATURE_OR_PET_GUID(guid)) { Creature *pCreature = GetPlayer()->GetNPCIfCanInteractWith(guid, UNIT_NPC_FLAG_NONE); diff --git a/src/shared/revision_nr.h b/src/shared/revision_nr.h index 221acd420..c8d462a23 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 "8997" + #define REVISION_NR "8998" #endif // __REVISION_NR_H__