From fcb2f44830b050667b31d22c1f5ad823ebea2de8 Mon Sep 17 00:00:00 2001 From: click Date: Sun, 11 Apr 2010 16:13:05 +0200 Subject: * Fix: Trainingdummies going into evade mode permanently Patch by tbaart --HG-- branch : trunk --- src/scripts/world/npcs_special.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/scripts/world') diff --git a/src/scripts/world/npcs_special.cpp b/src/scripts/world/npcs_special.cpp index 1737a86ba3c..0410de688e8 100644 --- a/src/scripts/world/npcs_special.cpp +++ b/src/scripts/world/npcs_special.cpp @@ -1905,6 +1905,14 @@ struct npc_training_dummy : Scripted_NoMovementAI DespawnTimer = 15000; } + void EnterEvadeMode() + { + if (!_EnterEvadeMode()) + return; + + Reset(); + } + void DamageTaken(Unit *done_by, uint32 &damage) { ResetTimer = 10000; -- cgit v1.2.3