Core/SmartAI: Implement SMART_TARGET_CLOSEST_ENEMY (25)

Required for upcoming EAI to SAI conversion.

Closes #10482
This commit is contained in:
Discover- authored and Nay committed 2013-08-07 19:59:06 +01:00
1 parent 1e8fd6489d
commit 9d4c2c5b1e
3 files changed
+18 -2

No files matched your search

@@ -992,7 +992,8 @@ enum SMARTAI_TARGETS
SMART_TARGET_ACTION_INVOKER_VEHICLE = 22, // Unit's vehicle who caused this Event to occur
SMART_TARGET_OWNER_OR_SUMMONER = 23, // Unit's owner or summoner
SMART_TARGET_THREAT_LIST = 24, // All units on creature's threat list
SMART_TARGET_END = 25
SMART_TARGET_CLOSEST_ENEMY = 25, // maxDist
SMART_TARGET_END = 26
};
struct SmartTarget
@@ -1074,6 +1075,11 @@ struct SmartTarget
uint32 dead;
} closest;
struct
{
uint32 maxDist;
} closestAttackable;
struct
{
uint32 param1;