Fix this fix to player fixing whatever

This commit is contained in:
Eevee (Evelyn Woods) 2021-01-01 20:18:03 -07:00
parent 21286920a2
commit a41baee3fc

View File

@ -2617,8 +2617,10 @@ const TILE_TYPES = {
on_arrive(me, level, other) { on_arrive(me, level, other) {
if (other.type.is_real_player) { if (other.type.is_real_player) {
level.remaining_players -= 1; level.remaining_players -= 1;
if (other === level.player && level.remaining_players > 0) { if (level.remaining_players > 0) {
level.swap_player1 = true; if (other === level.player) {
level.swap_player1 = true;
}
level.transmute_tile(other, other.type.name === 'player' ? 'player1_exit' : 'player2_exit'); level.transmute_tile(other, other.type.name === 'player' ? 'player1_exit' : 'player2_exit');
} }
} }