Gen7Data/Scripts/Pokemon/Flinch.as

9 lines
251 B
ActionScript
Raw Normal View History

2021-10-24 14:34:58 +00:00
namespace Gen7 {
2020-04-10 22:23:17 +00:00
[Pokemon effect=Flinch]
2021-10-24 14:34:58 +00:00
class FlinchEffect : PkmnScript{
2020-04-10 22:23:17 +00:00
void PreventAttack(ExecutingMove@ attack, bool& result) override {
result = true;
2021-03-28 18:22:46 +00:00
attack.User.RemoveVolatile("flinch");
2020-04-10 22:23:17 +00:00
}
}
}