Commit dcbdc78c authored by 18신대성's avatar 18신대성 Committed by Chae Ho Shin

시즌 12호 머지

parent 79aad6ec
......@@ -199,7 +199,7 @@ Input.convert = function()
}
if (this.convInput.length > 1)
{
if (this.convInput[1].charCodeAt(0) > ''.charCodeAt(0)) Input.input.splice(0, this.input.length - 2);
if (this.convInput[1].charCodeAt(0) >= ''.charCodeAt(0)) Input.input.splice(0, this.input.length - 2);
else Input.input.splice(0, this.input.length - 1);
this.converted += this.convInput.slice(0, 1);
this.convInput = this.convInput.slice(1, 2);
......
......@@ -89,6 +89,8 @@ io.on('connection', function(socket)
{
socket.playerData.currentRoom.announceToTarget(msg.target, 'attacked', msg);
//console.log('attack ' + msg.target + ' by ' + msg.attacker.id + ' with ' + msg.text);
setTimeout(function()
{
let target = GameServer.findPlayerSocket(msg.target);
if (target != null)
{
......@@ -108,6 +110,7 @@ io.on('connection', function(socket)
target.playerData.playingData.lastAttacks.push(dataToPush);
}
}
}, 4000);
});
socket.on('defeated', function()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment