More feedback for /timer command

This commit is contained in:
Deukhoofd 2016-04-12 19:49:54 +02:00
parent 9ca2a8746c
commit 5e52d0186d
1 changed files with 1 additions and 2 deletions

View File

@ -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