Should probably use getMaxHealth() instead of hardcoding... (Addresses

MCCORE-39)
This commit is contained in:
GJ 2012-02-22 12:19:22 -05:00
parent bebc70634b
commit 94cb118a7e

View File

@ -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());