From ffb5fb7445e7766c6eca0b4b2c4d254a89d91d0e Mon Sep 17 00:00:00 2001 From: Blaymoira Date: Fri, 13 Feb 2009 23:50:04 +0100 Subject: *Remove Not attackable flags on escortAI start --HG-- branch : trunk --- src/bindings/scripts/scripts/npc/npc_escortAI.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/bindings/scripts') 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); } -- cgit v1.2.3