Fixed Wolves having over max health due to Fast Food Service (Fixes

MCCORE-39)
This commit is contained in:
GJ 2012-02-22 12:18:21 -05:00
parent 186c9189ca
commit bebc70634b

View File

@ -191,9 +191,9 @@ public class Combat
{
if(Math.random() * 10 > 5)
{
if(theWolf.getHealth() + event.getDamage() <= 20)
theWolf.setHealth(theWolf.getHealth()+event.getDamage());
if(theWolf.getHealth() > theWolf.getMaxHealth())
else
theWolf.setHealth(theWolf.getMaxHealth());
}
}