Browse Source

bug #1906

tags/v0.10.6.8^2
Shaun 2 years ago
parent
commit
2bbe965534
1 changed files with 6 additions and 2 deletions
  1. +6
    -2
      src/server/components/spellbook.js

+ 6
- 2
src/server/components/spellbook.js View File

@@ -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;
}



Loading…
Cancel
Save