Update tester, implements attract
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2021-10-24 16:34:58 +02:00
parent c8a43107d9
commit 12f0e46372
7 changed files with 3081 additions and 649 deletions

View File

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

View File

@@ -0,0 +1,10 @@
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;
}
}
}
}