diff --git a/src/main/java/com/gmail/nossr50/Combat.java b/src/main/java/com/gmail/nossr50/Combat.java index 7e023c9cc..5579b9592 100644 --- a/src/main/java/com/gmail/nossr50/Combat.java +++ b/src/main/java/com/gmail/nossr50/Combat.java @@ -191,7 +191,7 @@ public class Combat { if(Math.random() * 10 > 5) { - if(theWolf.getHealth() + event.getDamage() <= 20) + if(theWolf.getHealth() + event.getDamage() <= theWolf.getMaxHealth()) theWolf.setHealth(theWolf.getHealth()+event.getDamage()); else theWolf.setHealth(theWolf.getMaxHealth());