More abilities, refactor IPokemon.SetStatus to pass pokemon that caused the status change
All checks were successful
Build / Build (push) Successful in 50s
All checks were successful
Build / Build (push) Successful in 50s
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user