aboutsummaryrefslogtreecommitdiff
path: root/src/bindings/scripts
diff options
context:
space:
mode:
authorBlaymoira <none@none>2009-02-13 23:50:04 +0100
committerBlaymoira <none@none>2009-02-13 23:50:04 +0100
commitffb5fb7445e7766c6eca0b4b2c4d254a89d91d0e (patch)
treee87edadcbdb016e112b2f0daa89e4714ad0dad71 /src/bindings/scripts
parent5f6705535b9ef5d37521a9078e7dea84a303ebe2 (diff)
*Remove Not attackable flags on escortAI start
--HG-- branch : trunk
Diffstat (limited to 'src/bindings/scripts')
-rw-r--r--src/bindings/scripts/scripts/npc/npc_escortAI.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/bindings/scripts/scripts/npc/npc_escortAI.cpp b/src/bindings/scripts/scripts/npc/npc_escortAI.cpp
index fefe9278322..c8584424414 100644
--- a/src/bindings/scripts/scripts/npc/npc_escortAI.cpp
+++ b/src/bindings/scripts/scripts/npc/npc_escortAI.cpp
@@ -299,4 +299,5 @@ void npc_escortAI::Start(bool bAttack, bool bDefend, bool bRun, uint64 pGUID)
//Disable questgiver flag
m_creature->RemoveFlag(UNIT_NPC_FLAGS, UNIT_NPC_FLAG_QUESTGIVER);
+ m_creature->RemoveFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NON_ATTACKABLE + UNIT_FLAG_NOT_ATTACKABLE_2);
}