AutoPlayTaskManager uses setIntention instead of doAutoAttack.
Contributed by G-hamsteR.
This commit is contained in:
		| @@ -70,7 +70,7 @@ public class AutoPlayTaskManager | ||||
| 						// Check if actually attacking. | ||||
| 						if (player.hasAI() && player.getAI().isAutoAttacking() && !player.isAttackingNow() && !player.isCastingNow()) | ||||
| 						{ | ||||
| 							player.doAutoAttack(monster); | ||||
| 							player.getAI().setIntention(CtrlIntention.AI_INTENTION_ATTACK, monster); | ||||
| 						} | ||||
| 						continue PLAY; | ||||
| 					} | ||||
|   | ||||
| @@ -70,7 +70,7 @@ public class AutoPlayTaskManager | ||||
| 						// Check if actually attacking. | ||||
| 						if (player.hasAI() && player.getAI().isAutoAttacking() && !player.isAttackingNow() && !player.isCastingNow()) | ||||
| 						{ | ||||
| 							player.doAutoAttack(monster); | ||||
| 							player.getAI().setIntention(CtrlIntention.AI_INTENTION_ATTACK, monster); | ||||
| 						} | ||||
| 						continue PLAY; | ||||
| 					} | ||||
|   | ||||
| @@ -70,7 +70,7 @@ public class AutoPlayTaskManager | ||||
| 						// Check if actually attacking. | ||||
| 						if (player.hasAI() && player.getAI().isAutoAttacking() && !player.isAttackingNow() && !player.isCastingNow()) | ||||
| 						{ | ||||
| 							player.doAutoAttack(monster); | ||||
| 							player.getAI().setIntention(CtrlIntention.AI_INTENTION_ATTACK, monster); | ||||
| 						} | ||||
| 						continue PLAY; | ||||
| 					} | ||||
|   | ||||
| @@ -70,7 +70,7 @@ public class AutoPlayTaskManager | ||||
| 						// Check if actually attacking. | ||||
| 						if (player.hasAI() && player.getAI().isAutoAttacking() && !player.isAttackingNow() && !player.isCastingNow()) | ||||
| 						{ | ||||
| 							player.doAutoAttack(monster); | ||||
| 							player.getAI().setIntention(CtrlIntention.AI_INTENTION_ATTACK, monster); | ||||
| 						} | ||||
| 						continue PLAY; | ||||
| 					} | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 MobiusDevelopment
					MobiusDevelopment