diff options
| author | QAston <none@none> | 2009-07-14 20:15:47 +0200 |
|---|---|---|
| committer | QAston <none@none> | 2009-07-14 20:15:47 +0200 |
| commit | 8898e9f4204aa5195237df9ae6d804455e8e2c38 (patch) | |
| tree | abac636389ada8d5f5aa4b8a46626d1e768beacb /src/bindings/scripts | |
| parent | 87ca52c2a9c77db7b9a3f6a4d4f7f12b57b854a5 (diff) | |
*Fix the bug that escorted creatures return to their spawnpoint after engaging combat.
--HG--
branch : trunk
Diffstat (limited to 'src/bindings/scripts')
| -rw-r--r-- | src/bindings/scripts/scripts/npc/npc_escortAI.h | 2 |
1 files changed, 2 insertions, 0 deletions
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; } |
