|  |  | @ -99,7 +99,10 @@ public class MobAI { | 
			
		
	
		
		
			
				
					
					|  |  |  |     public static void attackPlayer(Mob mob, PlayerCharacter target) { |  |  |  |     public static void attackPlayer(Mob mob, PlayerCharacter target) { | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |         try { |  |  |  |         try { | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  |             if(target == null || !target.isAlive() || !target.isActive() ) { | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                 mob.setCombatTarget(null); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                 return; | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |             } | 
			
		
	
		
		
			
				
					
					|  |  |  |             if (!mob.canSee(target)) { |  |  |  |             if (!mob.canSee(target)) { | 
			
		
	
		
		
			
				
					
					|  |  |  |                 mob.setCombatTarget(null); |  |  |  |                 mob.setCombatTarget(null); | 
			
		
	
		
		
			
				
					
					|  |  |  |                 return; |  |  |  |                 return; | 
			
		
	
	
		
		
			
				
					|  |  | @ -121,7 +124,7 @@ public class MobAI { | 
			
		
	
		
		
			
				
					
					|  |  |  |                 if (mob.isMoving() && mob.getRange() > 20) |  |  |  |                 if (mob.isMoving() && mob.getRange() > 20) | 
			
		
	
		
		
			
				
					
					|  |  |  |                     return; |  |  |  |                     return; | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |                 CombatManager.combatCycle(mob, mob.combatTarget); |  |  |  |                 CombatManager.combatCycle(mob, target); | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |             } |  |  |  |             } | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |             if (target.getPet() != null) |  |  |  |             if (target.getPet() != null) | 
			
		
	
	
		
		
			
				
					|  |  | 
 |