mirror of
https://github.com/Sollace/Unicopia.git
synced 2024-12-02 17:08:00 +01:00
Fixed siphoning spell not dying properly/duplicating its particle each time
This commit is contained in:
parent
4c1f5a4ba5
commit
690613b950
1 changed files with 11 additions and 11 deletions
|
@ -47,19 +47,19 @@ public class SiphoningSpell extends AbstractPlacedSpell {
|
||||||
source.addParticle(direction == 1 ? ParticleTypes.HEART : ParticleTypes.ANGRY_VILLAGER, pos, velocity);
|
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 {
|
} 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) {
|
private Stream<LivingEntity> getTargets(Caster<?> source) {
|
||||||
|
|
Loading…
Reference in a new issue