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

This commit is contained in:
Deukhoofd committed 2025-06-15 12:29:13 +02:00
1 parent defb1349ca
commit 85d97cb9e6
37 files changed
+214 -46

No files matched your search

@@ -6,7 +6,7 @@ public class ToxicThread : Script
/// <inheritdoc />
public override void OnSecondaryEffect(IExecutingMove move, IPokemon target, byte hit)
{
target.SetStatus(ScriptUtils.ResolveName<Status.Poisoned>(), false);
target.SetStatus(ScriptUtils.ResolveName<Status.Poisoned>(), move.User);
target.ChangeStatBoost(Statistic.Speed, -1, false, false);
}
}