More unit tests, fixes

This commit is contained in:
Deukhoofd committed 2026-07-05 19:45:40 +02:00
1 parent db839ac214
commit 2f51e27811
18 files changed
+1499 -19

No files matched your search

@@ -6,7 +6,7 @@ public class EndureEffect : Script, IScriptOnEndTurn, IScriptChangeIncomingDamag
/// <inheritdoc />
public void ChangeIncomingDamage(IPokemon pokemon, DamageSource source, ref uint damage)
{
if (damage > pokemon.CurrentHealth)
if (damage >= pokemon.CurrentHealth)
damage = pokemon.CurrentHealth - 1;
}