Explorar el Código

Fixes #129

tags/v0.1.4^2
Shaun hace 7 años
padre
commit
4ab89d3580
Se han modificado 1 ficheros con 7 adiciones y 2 borrados
  1. +7
    -2
      src/client/js/components/spellbook.js

+ 7
- 2
src/client/js/components/spellbook.js Ver fichero

@@ -28,7 +28,7 @@ define([
renderRange: null,

reticleSprite: null,
tarpSprite: null,
targetSprite: null,

shiftDown: false,

@@ -141,7 +141,12 @@ define([
},

tabTarget: function() {
this.onMouseDown(null, objects.getClosest(window.player.x, window.player.y, 10, this.shiftDown, this.target));
var closest = objects.getClosest(window.player.x, window.player.y, 10, this.shiftDown, this.target);

this.target = closest;
this.targetSprite.visible = !!this.target;

events.emit('onSetTarget', this.target, null);
},

build: function(destroy) {


Cargando…
Cancelar
Guardar