Fixed shields not capping properly
This commit is contained in:
@@ -32,7 +32,7 @@ public class ShieldRegenFieldAbility extends Ability{
|
|||||||
|
|
||||||
Units.nearby(unit.team, unit.x, unit.y, range, other -> {
|
Units.nearby(unit.team, unit.x, unit.y, range, other -> {
|
||||||
if(other.shield < max){
|
if(other.shield < max){
|
||||||
other.shield = Math.max(other.shield + amount, max);
|
other.shield = Math.min(other.shield + amount, max);
|
||||||
other.shieldAlpha = 1f; //TODO may not be necessary
|
other.shieldAlpha = 1f; //TODO may not be necessary
|
||||||
applyEffect.at(unit.x, unit.y, 0f, unit.team.color, parentizeEffects ? other : null);
|
applyEffect.at(unit.x, unit.y, 0f, unit.team.color, parentizeEffects ? other : null);
|
||||||
applied = true;
|
applied = true;
|
||||||
|
|||||||
@@ -11,4 +11,4 @@ android.useAndroidX=true
|
|||||||
#used for slow jitpack builds; TODO see if this actually works
|
#used for slow jitpack builds; TODO see if this actually works
|
||||||
http.socketTimeout=80000
|
http.socketTimeout=80000
|
||||||
http.connectionTimeout=80000
|
http.connectionTimeout=80000
|
||||||
archash=c6da2092c281d948c7864f22385575184f82e4b4
|
archash=6f56e0a3a33c0c7752c8aff868df035cf242e7aa
|
||||||
|
|||||||
Reference in New Issue
Block a user