Fixed sphere particles not going away after a unicorn disables their spell

This commit is contained in:
Sollace 2019-02-06 10:32:03 +02:00
parent 545bd3a34b
commit 6507169c7e

View file

@ -54,7 +54,7 @@ public class ParticleSphere extends Particle implements IAttachableParticle {
alpha = Math.min(1F, 1 - (float)particleAge/particleMaxAge) * baseAlpha;
if (caster == null || caster.getEntity().isDead) {
if (caster == null || !caster.hasEffect() || caster.getEffect().getDead() || caster.getEntity().isDead) {
setExpired();
} else {
Entity e = caster.getEntity();