浏览代码

bug #1906

tags/v0.10.6.8^2
Shaun 2 年前
父节点
当前提交
2bbe965534
共有 1 个文件被更改,包括 6 次插入2 次删除
  1. +6
    -2
      src/server/components/spellbook.js

+ 6
- 2
src/server/components/spellbook.js 查看文件

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

if (spell.spellType === 'buff' || spell.spellType === 'heal') {
if (target.aggro && (spell.spellType === 'buff' || spell.spellType === 'heal')) {
if (this.obj.aggro.faction !== target.aggro.faction)
return;
} else if (target.aggro && !this.obj.aggro.canAttack(target)) {
@@ -311,7 +311,11 @@ module.exports = {
}

if (!spell.targetGround && target && !target.aggro && !spell.aura) {
this.sendAnnouncement("You don't feel like attacking that target");
if (spell.spellType === 'heal')
this.sendAnnouncement("You don't feel like healing that target");
else
this.sendAnnouncement("You don't feel like attacking that target");

return;
}



正在加载...
取消
保存