mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-16 18:52:22 +00:00
Implement IGNORE_ROOT_AGGRO_RULES (special attack 42)
This allows you to have a mob be rooted but still try to attack the target with the most amount of hate instead of attacking the closest
This commit is contained in:
+2
-2
@@ -134,8 +134,8 @@ enum {
|
||||
DISABLE_MELEE = 39,
|
||||
NPC_CHASE_DISTANCE = 40,
|
||||
ALLOW_TO_TANK = 41,
|
||||
MAX_SPECIAL_ATTACK = 42
|
||||
|
||||
IGNORE_ROOT_AGGRO_RULES = 42,
|
||||
MAX_SPECIAL_ATTACK = 43
|
||||
};
|
||||
|
||||
typedef enum { //fear states
|
||||
|
||||
+1
-1
@@ -1088,7 +1088,7 @@ void Mob::AI_Process() {
|
||||
{
|
||||
// we are prevented from getting here if we are blind and don't have a target in range
|
||||
// from above, so no extra blind checks needed
|
||||
if (IsRooted() || IsBlind())
|
||||
if ((IsRooted() && !GetSpecialAbility(IGNORE_ROOT_AGGRO_RULES)) || IsBlind())
|
||||
SetTarget(hate_list.GetClosest(this));
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user