浏览代码

fixes #1072

tags/v0.3.2
Big Bad Waffle 5 年前
父节点
当前提交
bc2bd2db4d
共有 3 个文件被更改,包括 5 次插入1 次删除
  1. +3
    -1
      src/client/js/components/spellbook.js
  2. +1
    -0
      src/server/config/spells/spellFireblast.js
  3. +1
    -0
      src/server/config/spells/spellSmokeBomb.js

+ 3
- 1
src/client/js/components/spellbook.js 查看文件

@@ -163,13 +163,15 @@ define([
target = null;
else if (!spell.targetGround && this.target)
target = this.target.id;
else if (spell.targetPlayerPos)
isShiftDown = true;

if (isShiftDown)
this.target = oldTarget;

if (target === this.obj && spell.noTargetSelf)
return;
else if (isMobile && spell.targetGround && !this.groundTarget) {
else if (isMobile && spell.targetGround && !spell.targetPlayerPos && !this.groundTarget) {
if (this.groundTargetSpell === key) {
this.groundTargetSpell = null;



+ 1
- 0
src/server/config/spells/spellFireblast.js 查看文件

@@ -2,6 +2,7 @@ module.exports = {
type: 'fireblast',

targetGround: true,
targetPlayerPos: true,

radius: 2,
pushback: 4,


+ 1
- 0
src/server/config/spells/spellSmokeBomb.js 查看文件

@@ -58,6 +58,7 @@ module.exports = {

radius: 1,
targetGround: true,
targetPlayerPos: true,

update: function () {
let selfCast = this.selfCast;


正在加载...
取消
保存