mirror of
https://github.com/EQEmu/Server.git
synced 2026-03-26 05:22:25 +00:00
Filter invis NPC's in #killallnpcs
This commit is contained in:
parent
e5fce0fd4d
commit
f5b28a0b24
@ -5260,7 +5260,15 @@ void command_killallnpcs(Client *c, const Seperator *sep)
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (entity->IsInvisible() || !entity->IsAttackAllowed(c)) {
|
bool is_not_attackable =
|
||||||
|
(
|
||||||
|
entity->IsInvisible() ||
|
||||||
|
!entity->IsAttackAllowed(c) ||
|
||||||
|
entity->GetRace() == 127 ||
|
||||||
|
entity->GetRace() == 240
|
||||||
|
);
|
||||||
|
|
||||||
|
if (is_not_attackable) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user