Skip to content

Commit 1f5320f

Browse files
committed
prepare merge
1 parent 6239308 commit 1f5320f

1 file changed

Lines changed: 9 additions & 7 deletions

File tree

src/server/scripts/Outland/CoilfangReservoir/SteamVault/boss_mekgineer_steamrigger.cpp

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -210,13 +210,15 @@ struct npc_steamrigger_mechanic : public ScriptedAI
210210
void JustAppeared() override
211211
{
212212
if (TempSummon* summon = me->ToTempSummon())
213-
if (Unit* summoner = summon->GetSummonerUnit())
214-
if (summoner->IsCreature())
215-
{
216-
float x, y, z;
217-
summoner->GetContactPoint(me, x, y, z);
218-
me->GetMotionMaster()->MovePoint(POINT_REPAIR, x, y, z);
219-
}
213+
{
214+
Unit* summoner = summon->GetSummonerUnit();
215+
if (summoner && summoner->IsCreature())
216+
{
217+
float x, y, z;
218+
summoner->GetContactPoint(me, x, y, z);
219+
me->GetMotionMaster()->MovePoint(POINT_REPAIR, x, y, z);
220+
}
221+
}
220222
}
221223

222224
void MovementInform(uint32 type, uint32 pointId) override

0 commit comments

Comments
 (0)