Gen7Data/Scripts/Pokemon/Infatuated.as

10 lines
277 B
ActionScript
Raw Normal View History

2021-10-24 14:34:58 +00:00
namespace Gen7 {
[Pokemon effect=Infatuated]
class Infatuated : PkmnScript{
void PreventAttack(ExecutingMove@ attack, bool& result) override {
if (attack.User.Battle.Random.Get(2) == 0){
result = true;
}
}
}
}