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:
Hondacrx
2025-06-08 15:58:14 -04:00
parent a3a9ef5259
commit 8b0c3cb717
@@ -1106,6 +1106,8 @@ namespace Game.AI
if (_me == null)
break;
targets.RemoveAll(target => !target.IsUnit());
if (targets.Empty())
break;