Scripts/Misc: Fixed static analysis issues

This commit is contained in:
vincent-michael
2017-07-16 12:18:14 +02:00
committed by Aokromes
parent dc57965b4f
commit c9e25147cc
3 changed files with 4 additions and 9 deletions

View File

@@ -583,8 +583,7 @@ public:
me->GetMotionMaster()->MoveCharge(-8117.99f, 1532.24f, 3.94f, 4);
break;
case 60:
if (player)
Talk(ANACHRONOS_SAY_10, player);
Talk(ANACHRONOS_SAY_10, player);
me->GetMotionMaster()->MoveCharge(-8113.46f, 1524.16f, 2.89f, 4);
break;
case 61:

View File

@@ -156,11 +156,8 @@ public:
}
break;
case 24:
if (player)
{
player->GroupEventHappens(QUEST_PERILOUS_ADVENTURE, me);
Talk(SAY_QUEST_COMPLETE, player);
}
player->GroupEventHappens(QUEST_PERILOUS_ADVENTURE, me);
Talk(SAY_QUEST_COMPLETE, player);
me->SetWalk(false);
break;
case 25:

View File

@@ -1189,8 +1189,7 @@ public:
{
me->RemoveCorpse();
if (Creature* LordIllidan = (ObjectAccessor::GetCreature(*me, LordIllidanGUID)))
if (LordIllidan)
ENSURE_AI(npc_lord_illidan_stormrage::npc_lord_illidan_stormrageAI, LordIllidan->AI())->LiveCounter();
ENSURE_AI(npc_lord_illidan_stormrage::npc_lord_illidan_stormrageAI, LordIllidan->AI())->LiveCounter();
}
void UpdateAI(uint32 diff) override