Scripts/FollowerAI: Some cleanup:
Port From (https://github.com/TrinityCore/TrinityCore/commit/8c3eb07889f72955879c8a0e0881b51befb60067)
This commit is contained in:
@@ -493,6 +493,7 @@ namespace Game.AI
|
||||
public virtual void SpellHitTarget(Unit target, SpellInfo spellInfo) { }
|
||||
public virtual void SpellHitTargetGameObject(GameObject target, SpellInfo spellInfo) { }
|
||||
|
||||
// Should return true if the NPC is currently being escorted
|
||||
public virtual bool IsEscorted() { return false; }
|
||||
|
||||
public virtual void MovementInform(MovementGeneratorType type, uint id) { }
|
||||
@@ -565,14 +566,6 @@ namespace Game.AI
|
||||
// Object destruction is handled by Unit::RemoveCharmedBy
|
||||
public virtual PlayerAI GetAIForCharmedPlayer(Player who) { return null; }
|
||||
|
||||
/// <summary>
|
||||
/// Should return true if the NPC is target of an escort quest
|
||||
/// If onlyIfActive is set, should return true only if the escort quest is currently active
|
||||
/// </summary>
|
||||
/// <param name="onlyIfActive"></param>
|
||||
/// <returns></returns>
|
||||
public virtual bool IsEscortNPC(bool onlyIfActive) { return false; }
|
||||
|
||||
public List<AreaBoundary> GetBoundary() { return _boundary; }
|
||||
|
||||
public bool IsEngaged() { return _isEngaged; }
|
||||
|
||||
Reference in New Issue
Block a user