Implements more abilities
All checks were successful
Build / Build (push) Successful in 47s

This commit is contained in:
2025-06-09 12:10:25 +02:00
parent af0126e413
commit 00005aa4bf
50 changed files with 80425 additions and 20485 deletions

View File

@@ -22,6 +22,13 @@ public class Sleep : Script
{
// 1-3 turns of sleep
Turns = battleData.Battle.Random.GetInt(1, 4);
source.RunScriptHook(x => x.CustomTrigger(CustomTriggers.ModifySleepTurns,
new Dictionary<StringKey, object?>
{
{ "pokemon", pokemon },
{ "turns", Turns },
}));
Turns = Math.Max(1, Turns);
}
}