Update tester, implements attract
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
@@ -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");
|
||||
|
||||
10
Scripts/Pokemon/Infatuated.as
Normal file
10
Scripts/Pokemon/Infatuated.as
Normal 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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user