mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-18 16:38:42 +01:00
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:
@@ -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())
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user