瀏覽代碼

Fixes #129

tags/v0.1.4^2
Shaun 7 年之前
父節點
當前提交
4ab89d3580
共有 1 個檔案被更改,包括 7 行新增2 行删除
  1. +7
    -2
      src/client/js/components/spellbook.js

+ 7
- 2
src/client/js/components/spellbook.js 查看文件

@@ -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) {


Loading…
取消
儲存