Zwip-Zwap's suggestion of checking for coop and types of bots

This commit is contained in:
Arthur 2024-02-15 10:32:21 -05:00
parent 07678311d1
commit 2db0dc3ad9

View file

@ -1279,7 +1279,7 @@ static unsigned PIT_DoCheckThing(mobj_t *thing)
if (tmthing->type != MT_SHELL && tmthing->target && tmthing->target->type == thing->type)
{
// Don't hit yourself, and if a player, don't hit bots
if (thing == tmthing->target || (thing->player && thing->player->bot))
if (thing == tmthing->target || (thing->player && gametype == GT_COOP && (thing->player->bot == BOT_2PAI || thing->player->bot == BOT_2PHUMAN)))
return CHECKTHING_IGNORE;
if (thing->type != MT_PLAYER)