More feedback for /timer command
This commit is contained in:
parent
9ca2a8746c
commit
5e52d0186d
|
@ -357,7 +357,6 @@ desc "Makes the battle timed"
|
|||
makeCommand "timer", (user, room, next) ->
|
||||
controller = server_.findBattle(room.id)
|
||||
isBattler = false
|
||||
console.log(user.id)
|
||||
player = room.getPlayer(user.id)
|
||||
if 4 not in controller.battle.conditions and player != null
|
||||
controller.battle.conditions.push(4)
|
||||
|
@ -365,7 +364,7 @@ makeCommand "timer", (user, room, next) ->
|
|||
room.initTimer()
|
||||
room.startingTimer()
|
||||
room.onBeginTurn()
|
||||
room.send
|
||||
room.announce('warning', "The timer has been enabled by " + user.name)
|
||||
else if 4 in controller.battle.conditions
|
||||
user.announce(room.name, "error", "The timer is already enabled!")
|
||||
else if getPlayer == null
|
||||
|
|
Loading…
Reference in New Issue