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:
@@ -24,7 +24,8 @@ public class Rest : Script
|
||||
return;
|
||||
}
|
||||
|
||||
if (move.User.SetStatus(ScriptUtils.ResolveName<Sleep>(), true) && move.User.StatusScript.Script is Sleep sleep)
|
||||
if (move.User.SetStatus(ScriptUtils.ResolveName<Sleep>(), move.User) &&
|
||||
move.User.StatusScript.Script is Sleep sleep)
|
||||
sleep.Turns = 2;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user