AI/SmartAI: Remove a silly incorrect piece of code that was breaking react state swaps on SAI creatures. Fixes #21353.
This commit is contained in:
1 parent
d5816cc224
commit
18bcdbfd7d
2 files changed
-8
No files matched your search
@@ -545,11 +545,6 @@ void SmartAI::MoveInLineOfSight(Unit* who)
|
||||
CreatureAI::MoveInLineOfSight(who);
|
||||
}
|
||||
|
||||
bool SmartAI::CanAIAttack(Unit const* /*who*/) const
|
||||
{
|
||||
return !(me->HasReactState(REACT_PASSIVE));
|
||||
}
|
||||
|
||||
bool SmartAI::AssistPlayerInCombatAgainst(Unit* who)
|
||||
{
|
||||
if (me->HasReactState(REACT_PASSIVE) || !IsAIControlled())
|
||||
|
||||
Reference in new issue
Block a user