| 
						
						
							
								
							
						
						
					 | 
					 | 
					@ -140,7 +140,7 @@ public enum CombatManager { | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					            if (bonus != null) | 
					 | 
					 | 
					 | 
					            if (bonus != null) | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                rangeMod += bonus.getFloatPercentAll(mbEnums.ModType.WeaponRange, mbEnums.SourceType.None); | 
					 | 
					 | 
					 | 
					                rangeMod += bonus.getFloatPercentAll(mbEnums.ModType.WeaponRange, mbEnums.SourceType.None); | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					            attackRange = weapon.template.item_weapon_max_range * rangeMod; | 
					 | 
					 | 
					 | 
					            attackRange += weapon.template.item_weapon_max_range * rangeMod; | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        } | 
					 | 
					 | 
					 | 
					        } | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        if (attacker.getObjectType().equals(mbEnums.GameObjectType.Mob)) | 
					 | 
					 | 
					 | 
					        if (attacker.getObjectType().equals(mbEnums.GameObjectType.Mob)) | 
				
			
			
		
	
	
		
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
					 | 
					@ -150,11 +150,11 @@ public enum CombatManager { | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        float distanceSquared = attacker.loc.distanceSquared(target.loc); | 
					 | 
					 | 
					 | 
					        float distanceSquared = attacker.loc.distanceSquared(target.loc); | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        boolean inRange = false; | 
					 | 
					 | 
					 | 
					        boolean inRange = false; | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        if (attacker.getObjectType().equals(mbEnums.GameObjectType.PlayerCharacter)) { | 
					 | 
					 | 
					 | 
					        //if (attacker.getObjectType().equals(mbEnums.GameObjectType.PlayerCharacter)) {
 | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					            attackRange += ((PlayerCharacter) attacker).getCharacterHeight() * 0.5f; | 
					 | 
					 | 
					 | 
					        //    attackRange += ((PlayerCharacter) attacker).getCharacterHeight() * 0.5f;
 | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        } else { | 
					 | 
					 | 
					 | 
					        //} else {
 | 
				
			
			
				
				
			
		
	
		
		
	
		
		
	
		
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					            attackRange += attacker.calcHitBox(); | 
					 | 
					 | 
					 | 
					            attackRange += attacker.calcHitBox(); | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        } | 
					 | 
					 | 
					 | 
					        //}
 | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        if(attackRange > 15 && attacker.isMoving()){ | 
					 | 
					 | 
					 | 
					        if(attackRange > 15 && attacker.isMoving()){ | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					            //cannot shoot bow while moving;
 | 
					 | 
					 | 
					 | 
					            //cannot shoot bow while moving;
 | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
						
					 | 
					 | 
					
  |