changed The World to only affect enemies' movement but not attacks

This commit is contained in:
2024-07-23 18:45:02 -04:00
parent 23d42e136c
commit 5eda3ce388

View File

@ -80,16 +80,15 @@ character *game::move_enemies() {
}
}
if (the_world)
return nullptr;
for (auto ch : enemies) {
if (ch->is_dead()) {
levels[curr_level]->erase_enemy(ch);
continue;
}
if (the_world && !is_adjacent(ch->get_pos(), player->get_pos()))
continue;
bool hostile = ch->get_race() == MERCHANT ?
hostile_merchants : true;
auto res =