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) ->
|
makeCommand "timer", (user, room, next) ->
|
||||||
controller = server_.findBattle(room.id)
|
controller = server_.findBattle(room.id)
|
||||||
isBattler = false
|
isBattler = false
|
||||||
console.log(user.id)
|
|
||||||
player = room.getPlayer(user.id)
|
player = room.getPlayer(user.id)
|
||||||
if 4 not in controller.battle.conditions and player != null
|
if 4 not in controller.battle.conditions and player != null
|
||||||
controller.battle.conditions.push(4)
|
controller.battle.conditions.push(4)
|
||||||
|
@ -365,7 +364,7 @@ makeCommand "timer", (user, room, next) ->
|
||||||
room.initTimer()
|
room.initTimer()
|
||||||
room.startingTimer()
|
room.startingTimer()
|
||||||
room.onBeginTurn()
|
room.onBeginTurn()
|
||||||
room.send
|
room.announce('warning', "The timer has been enabled by " + user.name)
|
||||||
else if 4 in controller.battle.conditions
|
else if 4 in controller.battle.conditions
|
||||||
user.announce(room.name, "error", "The timer is already enabled!")
|
user.announce(room.name, "error", "The timer is already enabled!")
|
||||||
else if getPlayer == null
|
else if getPlayer == null
|
||||||
|
|
Loading…
Reference in New Issue