2020-04-10 22:23:17 +00:00
|
|
|
namespace Gen7 {
|
|
|
|
[Move effect=AfterYou]
|
|
|
|
class AfterYou : PkmnScript{
|
|
|
|
void OnSecondaryEffect(ExecutingMove@ attack, Pokemon@ target, uint8 hit) override {
|
|
|
|
bool result = target.Battle.TurnQueue.MovePokemonChoiceNext(target);
|
|
|
|
if (!result){
|
2021-08-26 17:25:38 +00:00
|
|
|
attack.GetHitData(target, hit).Fail();
|
2020-04-10 22:23:17 +00:00
|
|
|
}
|
|
|
|
};
|
|
|
|
}
|
|
|
|
}
|