Fix Sort Order

This commit is contained in:
ckcz123 2018-04-26 17:53:54 +08:00
parent 2b0150270c
commit 49679ff24d

View File

@ -365,6 +365,12 @@ enemys.prototype.getCurrentEnemys = function (floorId) {
if (a.damage == b.damage) {
return a.money - b.money;
}
if (a.damage == null) {
return 1;
}
if (b.damage == null) {
return -1;
}
return a.damage - b.damage;
});
return enemys;