mirror of
https://github.com/Sollace/Unicopia.git
synced 2024-11-23 13:37:58 +01:00
Reduce the chances of the siphoninh spell breaking when you misuse it
This commit is contained in:
parent
690613b950
commit
b27ff8c5f0
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue