AI/TotemAI: Tell Shaman Totems to stay put and stop moving.
Port From (https://github.com/TrinityCore/TrinityCore/commit/007eb8c9311320217fdda0bc0e6c05044254edfe)
This commit is contained in:
@@ -25,11 +25,15 @@ namespace Game.AI
|
||||
{
|
||||
ObjectGuid _victimGuid;
|
||||
|
||||
public TotemAI(Creature c) : base(c)
|
||||
public TotemAI(Creature creature) : base(creature)
|
||||
{
|
||||
_victimGuid = ObjectGuid.Empty;
|
||||
}
|
||||
|
||||
public override void MoveInLineOfSight(Unit who) { }
|
||||
|
||||
public override void JustAppeared() { }
|
||||
|
||||
public override void EnterEvadeMode(EvadeReason why)
|
||||
{
|
||||
me.CombatStop(true);
|
||||
@@ -77,5 +81,7 @@ namespace Game.AI
|
||||
else
|
||||
_victimGuid.Clear();
|
||||
}
|
||||
|
||||
public override void AttackStart(Unit victim) { }
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user