Filter invis NPC's in #killallnpcs

This commit is contained in:
Akkadius 2019-01-21 02:30:05 -06:00
parent e5fce0fd4d
commit f5b28a0b24

View File

@ -5260,7 +5260,15 @@ void command_killallnpcs(Client *c, const Seperator *sep)
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;
}