diff options
author | Blaymoira <none@none> | 2009-02-08 12:55:27 +0100 |
---|---|---|
committer | Blaymoira <none@none> | 2009-02-08 12:55:27 +0100 |
commit | 0058e7c20a48e24ed11ece1c7fd2a94289d9aea5 (patch) | |
tree | f4a54e58825e07afc27adb5df6e36a6f8aa60061 | |
parent | ef390526e2f21d3796beae0c1e801c03bc9b587d (diff) |
*Disable QuestGiver npcflag if creature in escort
--HG--
branch : trunk
-rw-r--r-- | src/bindings/scripts/scripts/npc/npc_escortAI.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/bindings/scripts/scripts/npc/npc_escortAI.cpp b/src/bindings/scripts/scripts/npc/npc_escortAI.cpp index bfe4138c8a5..3d9bafb330a 100644 --- a/src/bindings/scripts/scripts/npc/npc_escortAI.cpp +++ b/src/bindings/scripts/scripts/npc/npc_escortAI.cpp @@ -75,6 +75,7 @@ void npc_escortAI::JustRespawned() //Re-Enable gossip m_creature->SetFlag(UNIT_NPC_FLAGS, UNIT_NPC_FLAG_GOSSIP); + m_creature->SetFlag(UNIT_NPC_FLAGS, UNIT_NPC_FLAG_QUESTGIVER); Reset(); } @@ -299,4 +300,5 @@ void npc_escortAI::Start(bool bAttack, bool bDefend, bool bRun, uint64 pGUID) //Disable gossip m_creature->RemoveFlag(UNIT_NPC_FLAGS, UNIT_NPC_FLAG_GOSSIP); + m_creature->RemoveFlag(UNIT_NPC_FLAGS, UNIT_NPC_FLAG_QUESTGIVER); } |