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:
Treeston
2018-02-04 15:03:05 +01:00
committed by Ovahlord
parent d5816cc224
commit 18bcdbfd7d
2 changed files with 0 additions and 8 deletions

View File

@@ -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())

View File

@@ -145,9 +145,6 @@ class TC_GAME_API SmartAI : public CreatureAI
// Called when creature gets charmed by another unit
void OnCharmed(bool apply) override;
// Called when victim is in line of sight
bool CanAIAttack(Unit const* who) const override;
// Used in scripts to share variables
void DoAction(int32 param = 0) override;