Core/Gossip: Add log for GOSSIP_OPTION_TRAINER for missing conditions
This commit is contained in:
1 parent
047608e7de
commit
46374bf533
1 file changed
+4
@@ -14395,6 +14395,10 @@ void Player::PrepareGossipMenu(WorldObject* source, uint32 menuId /*= 0*/, bool
|
||||
canTalk = false;
|
||||
break;
|
||||
case GOSSIP_OPTION_TRAINER:
|
||||
if (getClass() != creature->GetCreatureTemplate()->trainer_class)
|
||||
TC_LOG_ERROR(LOG_FILTER_SQL, "GOSSIP_OPTION_TRAINER:: Player %s (GUID: %u) request wrong gossip menu: %u with wrong class: %u at Creature: %s (Entry: %u, Trainer Class: %u)",
|
||||
GetName(), GetGUIDLow(), menu->GetGossipMenu().GetMenuId(), getClass(), creature->GetName(), creature->GetEntry(), creature->GetCreatureTemplate()->trainer_class);
|
||||
// no break;
|
||||
case GOSSIP_OPTION_GOSSIP:
|
||||
case GOSSIP_OPTION_SPIRITGUIDE:
|
||||
case GOSSIP_OPTION_INNKEEPER:
|
||||
|
||||
Reference in new issue
Block a user