mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-02-12 03:37:27 +07:00
Made fortress mechs keep walking when attacking
This commit is contained in:
parent
8413443c26
commit
6113edf2ce
@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user