Reduce the chances of the siphoninh spell breaking when you misuse it

This commit is contained in:
Sollace 2021-03-05 20:53:59 +02:00
parent 690613b950
commit b27ff8c5f0

View file

@ -78,7 +78,7 @@ public class SiphoningSpell extends AbstractPlacedSpell {
source.subtractEnergyCost(0.2F);
if (maxHealthGain <= 0) {
if (source.getWorld().random.nextInt(30) == 0) {
if (source.getWorld().random.nextInt(3000) == 0) {
onDestroyed(source);
} else {
e.damage(damage, e.getHealth() / 4);