This commit is contained in:
Anuken
2022-02-07 16:09:15 -05:00
parent 77410ce106
commit c5bffd887e
5 changed files with 17 additions and 5 deletions

View File

@@ -19,7 +19,10 @@ public class SuicideAI extends GroundAI{
@Override
public void updateUnit(){
if(disabled()) return;
if(disabled()){
stopShooting();
return;
}
if(Units.invalidateTarget(target, unit.team, unit.x, unit.y, Float.MAX_VALUE)){
target = null;