Make NPCs respect continuous spell cooldowns
This commit is contained in:
@@ -153,8 +153,8 @@ public class EntityAIAttackSpell<T extends EntityLiving & ISpellCaster> extends
|
|||||||
|
|
||||||
// ...reset the continuous spell timer and start the cooldown.
|
// ...reset the continuous spell timer and start the cooldown.
|
||||||
this.continuousSpellTimer = 0;
|
this.continuousSpellTimer = 0;
|
||||||
|
this.cooldown = attacker.getContinuousSpell().getCooldown() + this.baseCooldown;
|
||||||
setContinuousSpellAndNotify(Spells.none, new SpellModifiers());
|
setContinuousSpellAndNotify(Spells.none, new SpellModifiers());
|
||||||
this.cooldown = this.baseCooldown;
|
|
||||||
return;
|
return;
|
||||||
|
|
||||||
}else if(this.continuousSpellDuration - this.continuousSpellTimer == 1){
|
}else if(this.continuousSpellDuration - this.continuousSpellTimer == 1){
|
||||||
|
|||||||
Reference in New Issue
Block a user