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