mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-17 07:18:37 +00:00
Treat bots like PCs for pcnpc_only_flag
This commit is contained in:
+2
-2
@@ -4960,10 +4960,10 @@ void EntityList::GetTargetsForConeArea(Mob *start, float min_radius, float radiu
|
||||
continue;
|
||||
}
|
||||
// check PC/NPC only flag 1 = PCs, 2 = NPCs
|
||||
if (pcnpc == 1 && !ptr->IsClient() && !ptr->IsMerc()) {
|
||||
if (pcnpc == 1 && !ptr->IsClient() && !ptr->IsMerc() && !ptr->IsBot()) {
|
||||
++it;
|
||||
continue;
|
||||
} else if (pcnpc == 2 && (ptr->IsClient() || ptr->IsMerc())) {
|
||||
} else if (pcnpc == 2 && (ptr->IsClient() || ptr->IsMerc() || ptr->IsBot())) {
|
||||
++it;
|
||||
continue;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user