Update to CreatureLib changes in event triggers.
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2020-07-31 16:30:06 +02:00
parent f55033b8a2
commit efbb9429d7
2 changed files with 3 additions and 4 deletions

View File

@@ -5,10 +5,10 @@ void PkmnLib::Battling::Battle::SetWeather(const ArbUt::StringView& name) {
}
_weatherScript = std::unique_ptr<CreatureLib::Battling::Script>(
_library->LoadScript(static_cast<ScriptCategory>(PkmnScriptCategory::Weather), name));
_eventHook.TriggerEvent(new WeatherChangeEvent(name));
_eventHook.Trigger<WeatherChangeEvent>(name);
}
void PkmnLib::Battling::Battle::ClearWeather() {
_weatherScript->OnRemove();
_weatherScript = nullptr;
_eventHook.TriggerEvent(new WeatherChangeEvent(""_cnc));
_eventHook.Trigger<WeatherChangeEvent>(""_cnc);
}