From f070f7a40805aa5dbcdf3cc58c949abd54963f60 Mon Sep 17 00:00:00 2001 From: hondacrx Date: Wed, 23 Jun 2021 15:13:21 -0400 Subject: [PATCH] Game/AI: Remove some unused old logic. Port From (https://github.com/TrinityCore/TrinityCore/commit/75a3b2f122f04a70f3e9eeed21cbe71d131c425f) --- Source/Game/AI/CoreAI/CreatureAI.cs | 33 ----------------------------- 1 file changed, 33 deletions(-) diff --git a/Source/Game/AI/CoreAI/CreatureAI.cs b/Source/Game/AI/CoreAI/CreatureAI.cs index d0b058d83..a8e0a6a0e 100644 --- a/Source/Game/AI/CoreAI/CreatureAI.cs +++ b/Source/Game/AI/CoreAI/CreatureAI.cs @@ -192,39 +192,6 @@ namespace Game.AI me.GetVehicleKit().Reset(true); } - public void SetGazeOn(Unit target) - { - if (me.IsValidAttackTarget(target) && target != me.GetVictim()) - { - if (!me.IsFocusing(null, true)) - AttackStart(target); - me.SetReactState(ReactStates.Passive); - } - } - - public bool UpdateVictimWithGaze() - { - if (!me.IsEngaged()) - return false; - - if (me.HasReactState(ReactStates.Passive)) - { - if (me.GetVictim() != null) - return true; - else - me.SetReactState(ReactStates.Aggressive); - } - - Unit victim = me.SelectVictim(); - if (victim != null) - { - if (!me.IsFocusing(null, true) && victim != me.GetVictim()) - AttackStart(victim); - } - - return me.GetVictim() != null; - } - public bool UpdateVictim() { if (!me.IsEngaged())