Core/AI: Finally move the "is creature engaged" flag to be a property of the creature AI, where it honestly always belonged.
Port From (https://github.com/TrinityCore/TrinityCore/commit/c13d83796f7b2111c5dcf8546bdd84eccd232ae3)
This commit is contained in:
@@ -77,6 +77,21 @@ namespace Game.AI
|
||||
|
||||
public override void MoveInLineOfSight(Unit who) { }
|
||||
|
||||
public override void JustEnteredCombat(Unit who)
|
||||
{
|
||||
EngagementStart(who);
|
||||
}
|
||||
|
||||
public override void JustExitedCombat()
|
||||
{
|
||||
EngagementOver();
|
||||
}
|
||||
|
||||
public override void JustStartedThreateningMe(Unit who)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void EnterEvadeMode(EvadeReason why) { }
|
||||
}
|
||||
|
||||
@@ -89,6 +104,8 @@ namespace Game.AI
|
||||
|
||||
public override void MoveInLineOfSight(Unit unit) { }
|
||||
public override void AttackStart(Unit unit) { }
|
||||
public override void JustStartedThreateningMe(Unit unit) { }
|
||||
public override void JustEnteredCombat(Unit who) { }
|
||||
public override void UpdateAI(uint diff) { }
|
||||
public override void JustAppeared() { }
|
||||
public override void EnterEvadeMode(EvadeReason why) { }
|
||||
|
||||
Reference in New Issue
Block a user