15 lines
479 B
ActionScript
15 lines
479 B
ActionScript
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;
|
|
}
|
|
}
|
|
} |