More abilities, refactor IPokemon.SetStatus to pass pokemon that caused the status change
All checks were successful
Build / Build (push) Successful in 50s

This commit is contained in:
2025-06-15 12:29:13 +02:00
parent defb1349ca
commit 85d97cb9e6
37 changed files with 214 additions and 46 deletions

View File

@@ -19,7 +19,7 @@ public class Static : Script
if (move.Battle.Random.GetInt(0, 100) < ChanceToParalyze)
{
EventBatchId batchId = new();
if (target.SetStatus(ScriptUtils.ResolveName<Status.Paralyzed>(), false, batchId))
if (target.SetStatus(ScriptUtils.ResolveName<Status.Paralyzed>(), target, batchId))
{
move.Battle.EventHook.Invoke(new AbilityTriggerEvent(target)
{