diff --git a/src/game/AI/ScriptDevAI/scripts/northrend/world_northrend.cpp b/src/game/AI/ScriptDevAI/scripts/northrend/world_northrend.cpp index aaf92a4386d..a1d7a7a854f 100644 --- a/src/game/AI/ScriptDevAI/scripts/northrend/world_northrend.cpp +++ b/src/game/AI/ScriptDevAI/scripts/northrend/world_northrend.cpp @@ -32,6 +32,19 @@ void world_map_northrend::OnCreatureCreate(Creature* creature) void world_map_northrend::SetData(uint32 /*uiType*/, uint32 /*uiData*/) {} +void world_map_northrend::SetData64(uint32 data, uint64 value) +{ + switch (data) + { + case 12537: // Lightning Definitely Strikes Twice + if (value) // 1 turn on weather + instance->SetZoneWeather(0, 4306, 5, 1.f); + else // 0 turn off weather + instance->SetZoneWeather(0, 4306, 0, 0.f); + break; + } +} + void world_map_northrend::SetDalaranCooldownTime(ObjectGuid playerGuid) { m_dalaranAreatriggerCooldown.emplace(playerGuid, instance->GetCurrentClockTime()); diff --git a/src/game/AI/ScriptDevAI/scripts/northrend/world_northrend.h b/src/game/AI/ScriptDevAI/scripts/northrend/world_northrend.h index fc49219e34d..b0e6de2f50e 100644 --- a/src/game/AI/ScriptDevAI/scripts/northrend/world_northrend.h +++ b/src/game/AI/ScriptDevAI/scripts/northrend/world_northrend.h @@ -19,6 +19,7 @@ struct world_map_northrend : public ScriptedMap void OnCreatureCreate(Creature* creature) override; void SetData(uint32 /*uiType*/, uint32 /*uiData*/) override; + void SetData64(uint32 data, uint64 value) override; void SetDalaranCooldownTime(ObjectGuid playerGuid); bool IsDalaranCooldownForPlayer(ObjectGuid playerGuid) const;