Make NPCs respect continuous spell cooldowns

This commit is contained in:
Electroblob77
2020-06-20 18:35:43 +01:00
parent a88aa57ef0
commit f18f1d20f3
@@ -153,8 +153,8 @@ public class EntityAIAttackSpell<T extends EntityLiving & ISpellCaster> 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){