|
|
@@ -39,8 +39,14 @@ module.exports = { |
|
|
|
obj.stats.takeDamage(damage, 0, obj); |
|
|
|
|
|
|
|
amount = amount * this.shieldMultiplier; |
|
|
|
const heal = { amount }; |
|
|
|
target.stats.getHp(heal, obj); |
|
|
|
target.effects.addEffect({ |
|
|
|
type: 'shield', |
|
|
|
ttl: this.frenzyDuration, |
|
|
|
new: true, |
|
|
|
noMsg: true, |
|
|
|
amount: amount, |
|
|
|
maxAmount: amount |
|
|
|
}); |
|
|
|
|
|
|
|
//Only reset the first spell's cooldown if it's an auto attack and not a spell |
|
|
|
const firstSpell = target.spellbook.spells[0]; |
|
|
|