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