mirror of
				https://github.com/mcMMO-Dev/mcMMO.git
				synced 2025-11-04 02:53:43 +01:00 
			
		
		
		
	Should probably use getMaxHealth() instead of hardcoding... (Addresses
MCCORE-39)
This commit is contained in:
		@@ -191,7 +191,7 @@ public class Combat
 | 
				
			|||||||
                        {
 | 
					                        {
 | 
				
			||||||
                            if(Math.random() * 10 > 5)
 | 
					                            if(Math.random() * 10 > 5)
 | 
				
			||||||
                            {
 | 
					                            {
 | 
				
			||||||
                            	if(theWolf.getHealth() + event.getDamage() <= 20)
 | 
					                            	if(theWolf.getHealth() + event.getDamage() <= theWolf.getMaxHealth())
 | 
				
			||||||
                            		theWolf.setHealth(theWolf.getHealth()+event.getDamage());
 | 
					                            		theWolf.setHealth(theWolf.getHealth()+event.getDamage());
 | 
				
			||||||
                            	else
 | 
					                            	else
 | 
				
			||||||
                            		theWolf.setHealth(theWolf.getMaxHealth());
 | 
					                            		theWolf.setHealth(theWolf.getMaxHealth());
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user