Gen7Data/Scripts/Battle/SuppressWeather.as

21 lines
450 B
ActionScript
Raw Normal View History

2021-11-19 17:12:10 +00:00
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;
};
}
}