This commit is contained in:
21
Scripts/Battle/SuppressWeather.as
Normal file
21
Scripts/Battle/SuppressWeather.as
Normal file
@@ -0,0 +1,21 @@
|
||||
namespace Gen7 {
|
||||
[Battle effect=SuppressWeather]
|
||||
class SuppressWeather : PkmnScript {
|
||||
int num = 1;
|
||||
|
||||
void Stack() override {
|
||||
num++;
|
||||
}
|
||||
|
||||
void Unstack() {
|
||||
num--;
|
||||
if (num == 0){
|
||||
cast<Battle@>(GetOwner()).RemoveVolatile("SuppressWeather");
|
||||
}
|
||||
}
|
||||
|
||||
void BlockWeather(Battle@, bool &inout block){
|
||||
block = true;
|
||||
};
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user