Misc minor fixes

This commit is contained in:
Anuken
2022-06-20 20:22:11 -04:00
parent a8a2b9f684
commit 900aa12a3c
3 changed files with 5 additions and 6 deletions

View File

@@ -13,6 +13,7 @@ public class MoveEffectAbility extends Ability{
public boolean rotateEffect = false;
public float effectParam = 3f;
public boolean teamColor = false;
public boolean parentizeEffects;
public Color color = Color.white;
public Effect effect = Fx.missileTrail;
@@ -36,7 +37,7 @@ public class MoveEffectAbility extends Ability{
if(unit.vel.len2() >= minVelocity * minVelocity && (counter >= interval)){
Tmp.v1.trns(unit.rotation - 90f, x, y);
counter %= interval;
effect.at(Tmp.v1.x + unit.x, Tmp.v1.y + unit.y, rotateEffect ? unit.rotation : effectParam, teamColor ? unit.team.color : color);
effect.at(Tmp.v1.x + unit.x, Tmp.v1.y + unit.y, rotateEffect ? unit.rotation : effectParam, teamColor ? unit.team.color : color, parentizeEffects ? unit : null);
}
}
}