Core/Misc: Fix static analysis issues

This commit is contained in:
jackpoz
2017-12-25 15:50:21 +01:00
parent cbc7642edd
commit ad56299846
5 changed files with 4 additions and 7 deletions

View File

@@ -2309,7 +2309,6 @@ public:
charGossipItem = GOSSIP_ITEM_GUARD_MITCHELLS;
break;
default:
charGossipItem = "";
return false;
}

View File

@@ -204,8 +204,7 @@ public:
Submerged = false;
WaitTimer2 = 500;
}
if (!Submerged && WaitTimer2 <= diff) // wait 500ms before emerge anim
else if (WaitTimer2 <= diff) // wait 500ms before emerge anim
{
me->RemoveAllAuras();
me->SetUInt32Value(UNIT_NPC_EMOTESTATE, 0);

View File

@@ -204,8 +204,7 @@ class boss_omor_the_unscarred : public CreatureScript
{
if (Unit* target = SelectTarget(SELECT_TARGET_RANDOM, 0))
{
if (target)
target = me->GetVictim();
target = me->GetVictim();
DoCast(target, SPELL_SHADOW_BOLT);
Shadowbolt_Timer = 4000 + rand32() % 2500;