namespace Gen7 { [Battle effect=SuppressWeather] class SuppressWeather : PkmnScript { int num = 1; void Stack() override { num++; } void Unstack() { num--; if (num == 0){ cast(GetOwner()).RemoveVolatile("SuppressWeather"); } } void BlockWeather(Battle@, bool &inout block){ block = true; }; } }