Gen7Data/Scripts/Moves/AfterYou.as

11 lines
364 B
ActionScript

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){
attack.GetHitData(target, hit).Fail();
}
};
}
}