More abilities, refactor custom triggers to be typed.
Build / Build (push) Successful in 48s

This commit is contained in:
Deukhoofd committed 2025-06-13 11:15:48 +02:00
1 parent 4326794611
commit 6d71de375e
43 files changed
+630 -196

No files matched your search

+2
View File
@@ -1023,6 +1023,8 @@ public class PokemonImpl : ScriptSource, IPokemon
this.RunScriptHook(script => script.ChangeIncomingDamage(this, source, ref dmg));
damage = dmg;
}
if (damage == 0)
return;
// If the damage is more than the current health, we cap it at the current health, to prevent
// underflow.