mirror of
				https://github.com/mcMMO-Dev/mcMMO.git
				synced 2025-10-31 09:13:43 +01:00 
			
		
		
		
	Fixed Wolves having over max health due to Fast Food Service (Fixes
MCCORE-39)
This commit is contained in:
		| @@ -191,10 +191,10 @@ public class Combat | ||||
|                         { | ||||
|                             if(Math.random() * 10 > 5) | ||||
|                             { | ||||
|                                 theWolf.setHealth(theWolf.getHealth()+event.getDamage()); | ||||
|                                  | ||||
|                                 if(theWolf.getHealth() > theWolf.getMaxHealth()) | ||||
|                                     theWolf.setHealth(theWolf.getMaxHealth()); | ||||
|                             	if(theWolf.getHealth() + event.getDamage() <= 20) | ||||
|                             		theWolf.setHealth(theWolf.getHealth()+event.getDamage()); | ||||
|                             	else | ||||
|                             		theWolf.setHealth(theWolf.getMaxHealth()); | ||||
|                             } | ||||
|                         } | ||||
|                     } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 GJ
					GJ