This commit is contained in:
@@ -8,6 +8,8 @@ void PkmnLib::Battling::Battle::SetWeather(const ArbUt::StringView& name) {
|
||||
_eventHook.Trigger<WeatherChangeEvent>(name);
|
||||
}
|
||||
void PkmnLib::Battling::Battle::ClearWeather() {
|
||||
if (_weatherScript == nullptr)
|
||||
return;
|
||||
_weatherScript->OnRemove();
|
||||
_weatherScript = nullptr;
|
||||
_eventHook.Trigger<WeatherChangeEvent>(""_cnc);
|
||||
|
||||
Reference in New Issue
Block a user