mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-08-03 16:39:37 +07:00
Made fortress mechs keep walking when attacking
This commit is contained in:
@ -1,21 +1,6 @@
|
||||
package io.anuke.mindustry.entities.type.base;
|
||||
|
||||
import io.anuke.mindustry.entities.Units;
|
||||
import io.anuke.mindustry.entities.type.GroundUnit;
|
||||
|
||||
public class Fortress extends GroundUnit{
|
||||
|
||||
@Override
|
||||
protected void patrol(){
|
||||
if(Units.invalidateTarget(target, this)){
|
||||
super.patrol();
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void moveToCore(){
|
||||
if(Units.invalidateTarget(target, this)){
|
||||
super.moveToCore();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user