From 727fbbef07b589e8c73db04029f3f4073ca5e256 Mon Sep 17 00:00:00 2001 From: Rat Date: Tue, 19 Jan 2010 12:07:51 +0100 Subject: *fix event reset bug for quest The Light of Dawn, Fixes issue #108. --HG-- branch : trunk --- src/scripts/eastern_kingdoms/scarlet_enclave/chapter5.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/scripts') diff --git a/src/scripts/eastern_kingdoms/scarlet_enclave/chapter5.cpp b/src/scripts/eastern_kingdoms/scarlet_enclave/chapter5.cpp index 36d10d44161..6e97f4b831f 100644 --- a/src/scripts/eastern_kingdoms/scarlet_enclave/chapter5.cpp +++ b/src/scripts/eastern_kingdoms/scarlet_enclave/chapter5.cpp @@ -577,6 +577,12 @@ struct TRINITY_DLL_DECL npc_highlord_darion_mograineAI : public npc_escortAI } } + void EnterEvadeMode() + { + if(!bIsBattle)//do not reset self if we are in battle + npc_escortAI::EnterEvadeMode(); + } + void UpdateAI(const uint32 diff) { npc_escortAI::UpdateAI(diff); -- cgit v1.2.3