mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-17 16:10:49 +01:00
Fix exploit, dont allow possessed NPCs to gossip to player
--HG-- branch : trunk
This commit is contained in:
@@ -795,6 +795,11 @@ bool Creature::isCanTrainingAndResetTalentsOf(Player* pPlayer) const
|
||||
|
||||
void Creature::prepareGossipMenu( Player *pPlayer,uint32 gossipid )
|
||||
{
|
||||
//Prevent gossip from NPCs that are possessed.
|
||||
Unit* Charmed = Unit::GetCharmer();
|
||||
if (Charmed)
|
||||
return;
|
||||
|
||||
PlayerMenu* pm=pPlayer->PlayerTalkClass;
|
||||
pm->ClearMenus();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user