mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-26 23:26:45 +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