mirror of
https://github.com/logsol/chuck.js.git
synced 2026-05-11 10:37:34 +00:00
only adds lastMovedBy when there was no damage - fixes #99
This commit is contained in:
parent
e370adf746
commit
0edde06d67
8 changed files with 403 additions and 21 deletions
|
|
@ -35,9 +35,9 @@ function(Parent, Nc, Parser, Settings) {
|
|||
};
|
||||
|
||||
PlayerController.prototype.handActionRequest = function(options) {
|
||||
options.x = parseFloat(options.x) || 0;
|
||||
options.y = parseFloat(options.y) || 0;
|
||||
options.av = parseFloat(options.av) || 0;
|
||||
options.x = parseFloat(options.x) || 0.0;
|
||||
options.y = parseFloat(options.y) || 0.0;
|
||||
options.av = parseFloat(options.av) || 0.0;
|
||||
if (options) this.player.handActionRequest(options);
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue