Adds Arena Trap ability

This commit is contained in:
2021-11-20 14:43:13 +01:00
parent f19c60c4c1
commit baae9377ef
4 changed files with 36 additions and 1 deletions

View File

@@ -0,0 +1,15 @@
namespace Gen7 {
class ArenaTrap : PkmnScript {
void PreventOpponentRunAway(FleeTurnChoice@ choice, bool &inout block){
if (block) return;
if (SpecialStates::IsRaised(choice.User)) return;
block = true;
}
void PreventOpponentSwitch(SwitchTurnChoice@ choice, bool &inout block){
if (block) return;
if (SpecialStates::IsRaised(choice.User)) return;
block = true;
}
}
}