[8962] Check player class instead of just active pet for gossip stable option

Signed-off-by: NoFantasy <nofantasy@nf.no>
This commit is contained in:
NoFantasy 2009-12-10 01:53:03 +01:00
parent 6f083e0c31
commit 4a2dc2438c
2 changed files with 2 additions and 2 deletions

View file

@ -12258,7 +12258,7 @@ void Player::PrepareGossipMenu(WorldObject *pSource, uint32 menuId)
bCanTalk = false; bCanTalk = false;
break; break;
case GOSSIP_OPTION_STABLEPET: case GOSSIP_OPTION_STABLEPET:
if (!GetPet() || GetPet()->getPetType() != HUNTER_PET) if (getClass() != CLASS_HUNTER)
bCanTalk = false; bCanTalk = false;
break; break;
case GOSSIP_OPTION_GOSSIP: case GOSSIP_OPTION_GOSSIP:

View file

@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__ #ifndef __REVISION_NR_H__
#define __REVISION_NR_H__ #define __REVISION_NR_H__
#define REVISION_NR "8961" #define REVISION_NR "8962"
#endif // __REVISION_NR_H__ #endif // __REVISION_NR_H__