Treat bots like PCs for pcnpc_only_flag

This commit is contained in:
Michael Cook (mackal)
2020-01-15 19:30:47 -05:00
parent 79db824a3c
commit d5067c4c3a
3 changed files with 8 additions and 6 deletions
+4 -2
View File
@@ -809,11 +809,13 @@ void EntityList::AESpell(
* 1 = PC
* 2 = NPC
*/
if (spells[spell_id].pcnpc_only_flag == 1 && !current_mob->IsClient() && !current_mob->IsMerc()) {
if (spells[spell_id].pcnpc_only_flag == 1 && !current_mob->IsClient() && !current_mob->IsMerc() &&
!current_mob->IsBot()) {
continue;
}
if (spells[spell_id].pcnpc_only_flag == 2 && (current_mob->IsClient() || current_mob->IsMerc())) {
if (spells[spell_id].pcnpc_only_flag == 2 &&
(current_mob->IsClient() || current_mob->IsMerc() || current_mob->IsBot())) {
continue;
}