diff options
author | Biglad <none@none> | 2009-02-09 08:06:43 -0500 |
---|---|---|
committer | Biglad <none@none> | 2009-02-09 08:06:43 -0500 |
commit | b0694d7e5e794b361fa178d55fefdb98cf47e9ca (patch) | |
tree | 305b9478b01af3cc5dd6c899fcf42d9825467abb /src | |
parent | 55177e392c4c596c1968b8e90d2e464901e1442c (diff) |
Fix exploit, dont allow possessed NPCs to gossip to player
--HG--
branch : trunk
Diffstat (limited to 'src')
-rw-r--r-- | src/game/Creature.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/game/Creature.cpp b/src/game/Creature.cpp index e8d48b55f38..efad9c5e484 100644 --- a/src/game/Creature.cpp +++ b/src/game/Creature.cpp @@ -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(); |