Fixed control
This commit is contained in:
@@ -21,7 +21,7 @@ public class CommandAI extends AIController{
|
|||||||
updateVisuals();
|
updateVisuals();
|
||||||
updateTargeting();
|
updateTargeting();
|
||||||
|
|
||||||
if(invalid(attackTarget)){
|
if(attackTarget != null && invalid(attackTarget)){
|
||||||
attackTarget = null;
|
attackTarget = null;
|
||||||
targetPos = null;
|
targetPos = null;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user