diff options
author | _manuel_ <none@none> | 2010-01-10 14:13:33 -0300 |
---|---|---|
committer | _manuel_ <none@none> | 2010-01-10 14:13:33 -0300 |
commit | 2eafa174833c4dd7f1c52fb31e41458fd39a0580 (patch) | |
tree | e719c8f03c865f098bbb08511f862d6a38672842 | |
parent | f636bf12b9ca4a38d0bd0cb3153884bf8371ea34 (diff) |
Borean Tundra: Improvements in lurgglbrAI by Kudlaty.
--HG--
branch : trunk
-rw-r--r-- | src/bindings/scripts/scripts/northrend/borean_tundra.cpp | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/src/bindings/scripts/scripts/northrend/borean_tundra.cpp b/src/bindings/scripts/scripts/northrend/borean_tundra.cpp index c6bc36c2979..539240caf8a 100644 --- a/src/bindings/scripts/scripts/northrend/borean_tundra.cpp +++ b/src/bindings/scripts/scripts/northrend/borean_tundra.cpp @@ -777,15 +777,18 @@ enum eLurgglbr struct TRINITY_DLL_DECL npc_lurgglbrAI : public npc_escortAI { - npc_lurgglbrAI(Creature* c) : npc_escortAI(c){} + npc_lurgglbrAI(Creature* pCreature) : npc_escortAI(pCreature){} uint32 IntroTimer; uint32 IntroPhase; void Reset() { - IntroTimer = 0; - IntroPhase = 0; + if (!HasEscortState(STATE_ESCORT_ESCORTING)) + { + IntroTimer = 0; + IntroPhase = 0; + } } void WaypointReached(uint32 i) @@ -853,6 +856,9 @@ struct TRINITY_DLL_DECL npc_lurgglbrAI : public npc_escortAI } else IntroTimer -= diff; } npc_escortAI::UpdateAI(diff); + + if (!UpdateVictim()) + return; } }; |