mirror of
https://github.com/Anuken/Mindustry.git
synced 2026-03-15 03:11:07 -07:00
Made fortress mechs keep walking when attacking
This commit is contained in:
parent
8413443c26
commit
6113edf2ce
1 changed files with 0 additions and 15 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue