AI/SmartAI: Remove a silly incorrect piece of code that was breaking react state swaps on SAI creatures.
Port From (https://github.com/TrinityCore/TrinityCore/commit/7695784fd2416764f3efa5bad3529250a49d05c8)
This commit is contained in:
@@ -522,11 +522,6 @@ namespace Game.AI
|
|||||||
base.MoveInLineOfSight(who);
|
base.MoveInLineOfSight(who);
|
||||||
}
|
}
|
||||||
|
|
||||||
public override bool CanAIAttack(Unit victim)
|
|
||||||
{
|
|
||||||
return !me.HasReactState(ReactStates.Passive);
|
|
||||||
}
|
|
||||||
|
|
||||||
bool AssistPlayerInCombatAgainst(Unit who)
|
bool AssistPlayerInCombatAgainst(Unit who)
|
||||||
{
|
{
|
||||||
if (me.HasReactState(ReactStates.Passive) || !IsAIControlled())
|
if (me.HasReactState(ReactStates.Passive) || !IsAIControlled())
|
||||||
|
|||||||
Reference in New Issue
Block a user