From f18f1d20f3fddf3bafc390ee170f67e39dd8ab81 Mon Sep 17 00:00:00 2001 From: Electroblob77 <35599699+Electroblob77@users.noreply.github.com> Date: Sat, 20 Jun 2020 18:35:43 +0100 Subject: [PATCH] Make NPCs respect continuous spell cooldowns --- .../electroblob/wizardry/entity/living/EntityAIAttackSpell.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/electroblob/wizardry/entity/living/EntityAIAttackSpell.java b/src/main/java/electroblob/wizardry/entity/living/EntityAIAttackSpell.java index 21cf3471..c559a919 100644 --- a/src/main/java/electroblob/wizardry/entity/living/EntityAIAttackSpell.java +++ b/src/main/java/electroblob/wizardry/entity/living/EntityAIAttackSpell.java @@ -153,8 +153,8 @@ public class EntityAIAttackSpell extends // ...reset the continuous spell timer and start the cooldown. this.continuousSpellTimer = 0; + this.cooldown = attacker.getContinuousSpell().getCooldown() + this.baseCooldown; setContinuousSpellAndNotify(Spells.none, new SpellModifiers()); - this.cooldown = this.baseCooldown; return; }else if(this.continuousSpellDuration - this.continuousSpellTimer == 1){