Skip to content

Commit

Permalink
Remove logic from the stat override that is already done in the backend
Browse files Browse the repository at this point in the history
  • Loading branch information
ncontinanza committed May 16, 2024
1 parent 9edfdfb commit bb886a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/Assets/Scripts/Battle/BattleManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ private void StatOverride(Protobuf.Messages.Action action)
target.CurrentHealth = (int)action.StatOverride.StatAffected.Amount;
break;
case Protobuf.Messages.Stat.Energy:
target.CurrentEnergy = Math.Max(0, (int)action.StatOverride.StatAffected.Amount);
target.CurrentEnergy = (int)action.StatOverride.StatAffected.Amount;
break;
default:
break;
Expand Down

0 comments on commit bb886a3

Please sign in to comment.