Gen7Data/Scripts/Abilities/ArenaTrap.as

16 lines
510 B
ActionScript
Raw Normal View History

2021-11-20 13:43:13 +00:00
namespace Gen7 {
2021-11-20 14:31:52 +00:00
[Ability effect=ArenaTrap]
2021-11-20 13:43:13 +00:00
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;
}
}
}