Adds Arena Trap ability
This commit is contained in:
15
Scripts/Abilities/ArenaTrap.as
Normal file
15
Scripts/Abilities/ArenaTrap.as
Normal 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;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user