mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-14 07:21:48 +00:00
[Bug Fix] Fix Swarm Pets Requiring NPC Aggros Flag (#3738)
# Notes - https://github.com/EQEmu/Server/pull/3595 made swarm pets require the `npc_aggro` flag to be set to attack.
This commit is contained in:
parent
b03f52de18
commit
e1fa2d5bc5
@ -1062,7 +1062,12 @@ void Mob::AI_Process() {
|
|||||||
SetTarget(hate_list.GetClosestEntOnHateList(this));
|
SetTarget(hate_list.GetClosestEntOnHateList(this));
|
||||||
else {
|
else {
|
||||||
if (AI_target_check_timer->Check()) {
|
if (AI_target_check_timer->Check()) {
|
||||||
if (IsNPC() && (!IsPet() || (HasOwner() && GetOwner()->IsNPC())) && !CastToNPC()->WillAggroNPCs()) {
|
if (
|
||||||
|
IsNPC() &&
|
||||||
|
!CastToNPC()->GetSwarmInfo() &&
|
||||||
|
(!IsPet() || (HasOwner() && GetOwner()->IsNPC())) &&
|
||||||
|
!CastToNPC()->WillAggroNPCs()
|
||||||
|
) {
|
||||||
WipeHateList(true); // wipe NPCs from hate list to prevent faction war
|
WipeHateList(true); // wipe NPCs from hate list to prevent faction war
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user