Fixed siphoning spell not dying properly/duplicating its particle each time

This commit is contained in:
Sollace 2021-03-05 20:53:17 +02:00
parent 4c1f5a4ba5
commit 690613b950

View file

@ -47,19 +47,19 @@ public class SiphoningSpell extends AbstractPlacedSpell {
source.addParticle(direction == 1 ? ParticleTypes.HEART : ParticleTypes.ANGRY_VILLAGER, pos, velocity);
}
});
}
if (source.getWorld().getTime() % 10 != 0) {
return true;
}
if (isFriendlyTogether(source)) {
distributeHealth(source);
} else {
collectHealth(source);
}
return true;
if (source.getWorld().getTime() % 10 != 0) {
return true;
}
if (isFriendlyTogether(source)) {
distributeHealth(source);
} else {
collectHealth(source);
}
}
return !isDead();
}
private Stream<LivingEntity> getTargets(Caster<?> source) {