Siphoning spell should stay angry for as long as there are entities still inside it

This commit is contained in:
Sollace 2021-03-06 12:08:14 +02:00
parent 6d3d8051fe
commit c188b9c7cb

View file

@ -89,11 +89,9 @@ public class SiphoningSpell extends AbstractPlacedSpell {
setDead(); setDead();
} else { } else {
e.damage(damage, e.getHealth() / 4); e.damage(damage, e.getHealth() / 4);
}
if (maxHealthGain <= 0) {
ticksUpset = 100; ticksUpset = 100;
setDirty();
} }
setDirty();
} else { } else {
e.heal((float)Math.min(0.5F * (1 + source.getLevel().get()), maxHealthGain * 0.6)); e.heal((float)Math.min(0.5F * (1 + source.getLevel().get()), maxHealthGain * 0.6));
ParticleUtils.spawnParticle(new FollowingParticleEffect(UParticles.HEALTH_DRAIN, e, 0.2F), e.world, e.getPos(), Vec3d.ZERO); ParticleUtils.spawnParticle(new FollowingParticleEffect(UParticles.HEALTH_DRAIN, e, 0.2F), e.world, e.getPos(), Vec3d.ZERO);