mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-01-25 22:58:47 +07:00
Fixed #7167
This commit is contained in:
parent
fc5e40a857
commit
a734f8423c
@ -34,6 +34,8 @@ public class MoveEffectAbility extends Ability{
|
||||
|
||||
@Override
|
||||
public void update(Unit unit){
|
||||
if(Vars.headless) return;
|
||||
|
||||
counter += Time.delta;
|
||||
if(unit.vel.len2() >= minVelocity * minVelocity && (counter >= interval) && !unit.inFogTo(Vars.player.team())){
|
||||
Tmp.v1.trns(unit.rotation - 90f, x, y);
|
||||
|
Loading…
Reference in New Issue
Block a user