mirror of
https://github.com/azerothcore/mod-ale
synced 2025-11-29 15:38:17 +08:00
Updated GetAITarget documentation with target types
This commit is contained in:
@@ -634,6 +634,17 @@ namespace LuaCreature
|
||||
* Returns a target from the [Creature]'s threat list based on the
|
||||
* supplied arguments.
|
||||
*
|
||||
* <pre>
|
||||
* enum SelectAggroTarget
|
||||
* {
|
||||
* SELECT_TARGET_RANDOM = 0, //Just selects a random target
|
||||
* SELECT_TARGET_TOPAGGRO, //Selects targes from top aggro to bottom
|
||||
* SELECT_TARGET_BOTTOMAGGRO, //Selects targets from bottom aggro to top
|
||||
* SELECT_TARGET_NEAREST,
|
||||
* SELECT_TARGET_FARTHEST
|
||||
* };
|
||||
* </pre>
|
||||
*
|
||||
* For example, if you wanted to select the third-farthest [Player]
|
||||
* within 50 yards that has the [Aura] "Corrupted Blood" (ID 24328),
|
||||
* you could use this function like so:
|
||||
|
||||
Reference in New Issue
Block a user