Core/SAI: Improve SMART_ACTION_ATTACK_START to exclude non-unit targets from selection pool
Port From (https://github.com/TrinityCore/TrinityCore/commit/444a98111a8d08a985d9489b06f0e1487c04cab6)
This commit is contained in:
@@ -1106,6 +1106,8 @@ namespace Game.AI
|
||||
if (_me == null)
|
||||
break;
|
||||
|
||||
targets.RemoveAll(target => !target.IsUnit());
|
||||
|
||||
if (targets.Empty())
|
||||
break;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user