mirror of
https://gitlab.com/Deukhoofd/BattleSim.git
synced 2025-10-27 18:00:03 +00:00
Fixed error where doing /timer in lobby would crash the server
This commit is contained in:
@@ -355,6 +355,8 @@ makeOwnerCommand "eval", (user, room, next, pieces...) ->
|
||||
|
||||
desc "Makes the battle timed"
|
||||
makeCommand "timer", (user, room, next) ->
|
||||
if !(_.has room, "turn")
|
||||
return
|
||||
controller = server_.findBattle(room.id)
|
||||
isBattler = false
|
||||
player = room.getPlayer(user.id)
|
||||
|
||||
Reference in New Issue
Block a user