Re-trying JITPack
This commit is contained in:
@@ -9,6 +9,7 @@ public class ShieldRegenFieldAbility extends Ability{
|
||||
public float amount = 1, max = 100f, reload = 100, range = 60;
|
||||
public Effect applyEffect = Fx.shieldApply;
|
||||
public Effect activeEffect = Fx.shieldWave;
|
||||
public boolean parentizeEffects;
|
||||
|
||||
protected float timer;
|
||||
protected boolean applied = false;
|
||||
@@ -33,7 +34,7 @@ public class ShieldRegenFieldAbility extends Ability{
|
||||
if(other.shield < max){
|
||||
other.shield = Math.max(other.shield + amount, max);
|
||||
other.shieldAlpha = 1f; //TODO may not be necessary
|
||||
applyEffect.at(unit.x, unit.y, unit.team.color);
|
||||
applyEffect.at(unit.x, unit.y, 0f, unit.team.color, parentizeEffects ? other : null);
|
||||
applied = true;
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user