mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-12-27 02:58:03 +01:00
Should probably use getMaxHealth() instead of hardcoding... (Addresses
MCCORE-39)
This commit is contained in:
parent
bebc70634b
commit
94cb118a7e
@ -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());
|
||||
|
Loading…
Reference in New Issue
Block a user