mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-02 08:39:49 +01:00
Fixed Wolves having over max health due to Fast Food Service (Fixes
MCCORE-39)
This commit is contained in:
parent
186c9189ca
commit
bebc70634b
@ -191,9 +191,9 @@ public class Combat
|
|||||||
{
|
{
|
||||||
if(Math.random() * 10 > 5)
|
if(Math.random() * 10 > 5)
|
||||||
{
|
{
|
||||||
|
if(theWolf.getHealth() + event.getDamage() <= 20)
|
||||||
theWolf.setHealth(theWolf.getHealth()+event.getDamage());
|
theWolf.setHealth(theWolf.getHealth()+event.getDamage());
|
||||||
|
else
|
||||||
if(theWolf.getHealth() > theWolf.getMaxHealth())
|
|
||||||
theWolf.setHealth(theWolf.getMaxHealth());
|
theWolf.setHealth(theWolf.getMaxHealth());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user