Fix this fix to player fixing whatever
This commit is contained in:
parent
21286920a2
commit
a41baee3fc
@ -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) {
|
||||||
|
if (other === level.player) {
|
||||||
level.swap_player1 = true;
|
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');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user