Gen7Data/Scripts/Moves/AfterYou.as

11 lines
364 B
ActionScript
Raw Normal View History

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
}
};
}
}