More abilities, refactor IPokemon.SetStatus to pass pokemon that caused the status change
Build / Build (push) Successful in 50s
Build / Build (push) Successful in 50s
This commit is contained in:
37 files changed
+214
-46
No files matched your search
@@ -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