From 8898e9f4204aa5195237df9ae6d804455e8e2c38 Mon Sep 17 00:00:00 2001 From: QAston Date: Tue, 14 Jul 2009 20:15:47 +0200 Subject: *Fix the bug that escorted creatures return to their spawnpoint after engaging combat. --HG-- branch : trunk --- src/bindings/scripts/scripts/npc/npc_escortAI.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/bindings/scripts') diff --git a/src/bindings/scripts/scripts/npc/npc_escortAI.h b/src/bindings/scripts/scripts/npc/npc_escortAI.h index 3431e84c6f8..fe352b6e277 100644 --- a/src/bindings/scripts/scripts/npc/npc_escortAI.h +++ b/src/bindings/scripts/scripts/npc/npc_escortAI.h @@ -61,6 +61,8 @@ struct TRINITY_DLL_DECL npc_escortAI : public ScriptedAI void SetMaxPlayerDistance(float newMax) { MaxPlayerDistance = newMax; } float GetMaxPlayerDistance() { return MaxPlayerDistance; } + bool IsEscorted() {return IsBeingEscorted;} + void SetCanMelee(bool usemelee) { CanMelee = usemelee; } void SetDespawnAtEnd(bool despawn) { DespawnAtEnd = despawn; } void SetDespawnAtFar(bool despawn) { DespawnAtFar = despawn; } -- cgit v1.2.3