21 lines
450 B
ActionScript
21 lines
450 B
ActionScript
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;
|
|
};
|
|
}
|
|
} |