mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-30 05:43:12 +01:00
Core: Fix warnings
This commit is contained in:
@@ -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