aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/server/scripts/EasternKingdoms/ZulAman/boss_akilzon.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/server/scripts/EasternKingdoms/ZulAman/boss_akilzon.cpp b/src/server/scripts/EasternKingdoms/ZulAman/boss_akilzon.cpp
index 5fe21bc0a67..75c45f5cc14 100644
--- a/src/server/scripts/EasternKingdoms/ZulAman/boss_akilzon.cpp
+++ b/src/server/scripts/EasternKingdoms/ZulAman/boss_akilzon.cpp
@@ -28,6 +28,7 @@ EndScriptData */
#include "ScriptMgr.h"
#include "CellImpl.h"
#include "GridNotifiersImpl.h"
+#include "MiscPackets.h"
#include "MotionMaster.h"
#include "ObjectAccessor.h"
#include "ScriptedCreature.h"
@@ -139,16 +140,13 @@ class boss_akilzon : public CreatureScript
Talk(SAY_KILL);
}
- void SetWeather(uint32 weather, float grade)
+ void SetWeather(WeatherState weather, float grade)
{
Map* map = me->GetMap();
if (!map->IsDungeon())
return;
- WorldPacket data(SMSG_WEATHER, (4+4+4));
- data << uint32(weather) << float(grade) << uint8(0);
-
- map->SendToPlayers(&data);
+ map->SendToPlayers(WorldPackets::Misc::Weather(weather, grade).Write());
}
void HandleStormSequence(Unit* Cloud) // 1: begin, 2-9: tick, 10: end