Fix ScriptedAI::SelectUnit to support SELECT_TARGET_NEAREST and SELECT_TARGET_FARTHEST.
Remove duplicate select target function CreatureEventAI::SelectUnit. --HG-- branch : trunk
This commit is contained in:
@@ -296,19 +296,6 @@ enum ChatType
|
||||
CHAT_TYPE_ZONE_YELL = 6
|
||||
};
|
||||
|
||||
//Selection method used by SelectTarget (CreatureEventAI)
|
||||
enum AttackingTarget
|
||||
{
|
||||
ATTACKING_TARGET_RANDOM = 0, //Just selects a random target
|
||||
ATTACKING_TARGET_TOPAGGRO, //Selects targes from top aggro to bottom
|
||||
ATTACKING_TARGET_BOTTOMAGGRO, //Selects targets from bottom aggro to top
|
||||
/* not implemented
|
||||
ATTACKING_TARGET_RANDOM_PLAYER, //Just selects a random target (player only)
|
||||
ATTACKING_TARGET_TOPAGGRO_PLAYER, //Selects targes from top aggro to bottom (player only)
|
||||
ATTACKING_TARGET_BOTTOMAGGRO_PLAYER, //Selects targets from bottom aggro to top (player only)
|
||||
*/
|
||||
};
|
||||
|
||||
// GCC have alternative #pragma pack() syntax and old gcc version not support pack(pop), also any gcc version not support it at some platform
|
||||
#if defined( __GNUC__ )
|
||||
#pragma pack()
|
||||
|
||||
Reference in New Issue
Block a user