mirror of
https://github.com/EQEmu/Server.git
synced 2026-02-18 10:42:25 +00:00
[Bug Fix] Force NPCs to respect special ability 24 and 50 when set on player pets (#2059)
* Force NPCs to respect special ability 24 and 50 when set on player pets * Fix error in logic * Remove this
This commit is contained in:
parent
326dba6aeb
commit
25c0416f1e
@ -436,11 +436,16 @@ bool Mob::CheckWillAggro(Mob *mob) {
|
||||
pet_owner->IsClient() &&
|
||||
(
|
||||
!RuleB(Aggro, AggroPlayerPets) ||
|
||||
pet_owner->CastToClient()->GetGM()
|
||||
pet_owner->CastToClient()->GetGM() ||
|
||||
mob->GetSpecialAbility(IMMUNE_AGGRO)
|
||||
)
|
||||
) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (IsNPC() && mob->IsNPC() && mob->GetSpecialAbility(IMMUNE_AGGRO_NPC)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
// Check If it's invisible and if we can see invis
|
||||
// Check if it's a client, and that the client is connected and not linkdead,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user