This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user