Exclude invulnerable NPCs from auto play targeting.
This commit is contained in:
		| @@ -317,6 +317,11 @@ public class AutoPlayTaskManager | ||||
| 		 | ||||
| 		private boolean isTargetModeValid(int mode, Player player, Creature creature) | ||||
| 		{ | ||||
| 			if (!creature.isTargetable() || (creature.isNpc() && creature.isInvul())) | ||||
| 			{ | ||||
| 				return false; | ||||
| 			} | ||||
| 			 | ||||
| 			switch (mode) | ||||
| 			{ | ||||
| 				case 1: // Monster | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 MobiusDevelopment
					MobiusDevelopment