Fix Sort Order
This commit is contained in:
parent
2b0150270c
commit
49679ff24d
@ -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;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user