Core: Fix warnings
This commit is contained in:
1 parent
bdbc1312c3
commit
3d0063abee
4 files changed
+9
-5
No files matched your search
+2
-2
@@ -619,7 +619,7 @@ public:
|
||||
{
|
||||
if (m_uiRangeCheckTimer < uiDiff)
|
||||
{
|
||||
if (Player* target = me->SelectNearestPlayer(2.0f))
|
||||
if (me->SelectNearestPlayer(2.0f))
|
||||
{
|
||||
DoCastAOE(SPELL_UNLEASHED_DARK);
|
||||
me->GetMotionMaster()->MoveIdle();
|
||||
@@ -660,7 +660,7 @@ public:
|
||||
{
|
||||
if (m_uiRangeCheckTimer < uiDiff)
|
||||
{
|
||||
if (Player* target = me->SelectNearestPlayer(2.0f))
|
||||
if (me->SelectNearestPlayer(2.0f))
|
||||
{
|
||||
DoCastAOE(SPELL_UNLEASHED_LIGHT);
|
||||
me->GetMotionMaster()->MoveIdle();
|
||||
|
||||
@@ -491,7 +491,7 @@ public:
|
||||
Creature* coilfangElite = me->SummonCreature(COILFANG_ELITE, CoilfangElitePos[pos][0], CoilfangElitePos[pos][1], CoilfangElitePos[pos][2], CoilfangElitePos[pos][3], TEMPSUMMON_TIMED_DESPAWN_OUT_OF_COMBAT, 5000);
|
||||
if (coilfangElite)
|
||||
{
|
||||
if (Unit* target = target = SelectTarget(SELECT_TARGET_RANDOM, 0))
|
||||
if (Unit* target = SelectTarget(SELECT_TARGET_RANDOM, 0))
|
||||
coilfangElite->AI()->AttackStart(target);
|
||||
else if (me->getVictim())
|
||||
coilfangElite->AI()->AttackStart(me->getVictim());
|
||||
|
||||
Reference in new issue
Block a user