Gen7Data/Scripts/Pokemon/Flinch.as

9 lines
247 B
ActionScript

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