Skip to content

Commit a80dcf1

Browse files
committed
Update GetAITarget documentation
1 parent cd9706d commit a80dcf1

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

methods/TrinityCore/CreatureMethods.h

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -629,14 +629,13 @@ namespace LuaCreature
629629
* Returns a target from the [Creature]'s threat list based on the
630630
* supplied arguments.
631631
*
632-
* enum SelectAggroTarget
633-
* {
634-
* SELECT_TARGET_RANDOM = 0, //Just selects a random target
635-
* SELECT_TARGET_TOPAGGRO, //Selects targets from top aggro to bottom
636-
* SELECT_TARGET_BOTTOMAGGRO, //Selects targets from bottom aggro to top
637-
* SELECT_TARGET_NEAREST,
638-
* SELECT_TARGET_FARTHEST
639-
* };
632+
* @table
633+
* @columns [SelectAggroTarget, ID, Comment]
634+
* @values [SELECT_TARGET_RANDOM, 0, "Just selects a random target"]
635+
* @values [SELECT_TARGET_TOPAGGRO, 1, "Sorts targets from top aggro to bottom"]
636+
* @values [SELECT_TARGET_BOTTOMAGGRO, 2, "Sorts targets from bottom aggro to top"]
637+
* @values [SELECT_TARGET_NEAREST, 3, "Sorts targets from the nearest to the furthest"]
638+
* @values [SELECT_TARGET_FARTHEST, 4, "Sorts targets from the furthest to the nearest"]
640639
*
641640
* For example, if you wanted to select the third-farthest [Player]
642641
* within 50 yards that has the [Aura] "Corrupted Blood" (ID 24328),

0 commit comments

Comments
 (0)