Ver a proveniência

another fix for #1030

tags/v0.3.3^2
Big Bad Waffle há 4 anos
ascendente
cometimento
cc5dc61e3e
2 ficheiros alterados com 8 adições e 4 eliminações
  1. +1
    -1
      src/server/config/maps/dungeon.json
  2. +7
    -3
      src/server/objects/objBase.js

+ 1
- 1
src/server/config/maps/dungeon.json Ver ficheiro

@@ -641,4 +641,4 @@
"type":"map", "type":"map",
"version":1, "version":1,
"width":200 "width":200
}
}

+ 7
- 3
src/server/objects/objBase.js Ver ficheiro

@@ -190,8 +190,12 @@ module.exports = {
this.actionQueue.spliceWhere(a => a.priority); this.actionQueue.spliceWhere(a => a.priority);
this.actionQueue.splice(0, 0, action); this.actionQueue.splice(0, 0, action);
} else { } else {
if (action.priority)
if (action.priority) {
this.spellbook.stopCasting(); this.spellbook.stopCasting();
this.actionQueue.splice(0, 0, action);
return;
}

this.actionQueue.push(action); this.actionQueue.push(action);
} }
}, },
@@ -289,7 +293,7 @@ module.exports = {
(deltaX === 0) && (deltaX === 0) &&
(deltaY === 0) (deltaY === 0)
) )
)
)
return false; return false;
} }


@@ -300,7 +304,7 @@ module.exports = {


this.x = data.x; this.x = data.x;
this.y = data.y; this.y = data.y;
} else
} else
return false; return false;
} else { } else {
physics.removeObject(this, this.x, this.y, data.x, data.y); physics.removeObject(this, this.x, this.y, data.x, data.y);


Carregando…
Cancelar
Guardar