Fix NPCs not joining combat

This commit is contained in:
Alexander Batalov 2023-01-16 16:42:50 +03:00
parent bffe81d0b3
commit ad3860790c
1 changed files with 2 additions and 2 deletions

View File

@ -3167,11 +3167,11 @@ bool _combatai_want_to_join(Object* a1)
return true;
}
if ((a1->data.critter.combat.maneuver & CRITTER_MANEUVER_STOP_ATTACKING) == 0) {
if ((a1->data.critter.combat.maneuver & CRITTER_MANEUVER_STOP_ATTACKING) != 0) {
return false;
}
if ((a1->data.critter.combat.maneuver & CRITTER_MANUEVER_FLEEING) == 0) {
if ((a1->data.critter.combat.maneuver & CRITTER_MANUEVER_FLEEING) != 0) {
return false;
}