Gen7Data/Scripts/Pokemon/Flinch.as

9 lines
251 B
ActionScript

namespace Gen7 {
[Pokemon effect=Flinch]
class FlinchEffect : PkmnScript{
void PreventAttack(ExecutingMove@ attack, bool& result) override {
result = true;
attack.User.RemoveVolatile("flinch");
}
}
}