refactor(Core): NULL -> nullptr (#3275)
* NULL to nullptr * NULL to nullptr * NULL to nullptr * NULL to nullptr * NULL to nullptr Co-authored-by: Francesco Borzì <borzifrancesco@gmail.com> Co-authored-by: Stefano Borzì <stefanoborzi32@gmail.com>
This commit is contained in:
@@ -81,7 +81,7 @@ class boss_curator : public CreatureScript
|
||||
void JustSummoned(Creature* summon)
|
||||
{
|
||||
summons.Summon(summon);
|
||||
if (Unit* target = summon->SelectNearbyTarget(NULL, 40.0f))
|
||||
if (Unit* target = summon->SelectNearbyTarget(nullptr, 40.0f))
|
||||
{
|
||||
summon->AI()->AttackStart(target);
|
||||
summon->AddThreat(target, 1000.0f);
|
||||
|
||||
@@ -89,7 +89,7 @@ public:
|
||||
struct netherspite_infernalAI : public ScriptedAI
|
||||
{
|
||||
netherspite_infernalAI(Creature* creature) : ScriptedAI(creature),
|
||||
HellfireTimer(0), CleanupTimer(0), malchezaar(0), point(NULL) { }
|
||||
HellfireTimer(0), CleanupTimer(0), malchezaar(0), point(nullptr) { }
|
||||
|
||||
uint32 HellfireTimer;
|
||||
uint32 CleanupTimer;
|
||||
@@ -365,7 +365,7 @@ public:
|
||||
{
|
||||
if (SWPainTimer <= diff)
|
||||
{
|
||||
Unit* target = NULL;
|
||||
Unit* target = nullptr;
|
||||
if (phase == 1)
|
||||
target = me->GetVictim(); // Target the Tank
|
||||
else // anyone but the tank
|
||||
@@ -416,7 +416,7 @@ public:
|
||||
{
|
||||
if (AmplifyDamageTimer <= diff)
|
||||
{
|
||||
Unit* target = NULL;
|
||||
Unit* target = nullptr;
|
||||
target = SelectTarget(SELECT_TARGET_RANDOM, 1, 100, true);
|
||||
|
||||
if (target)
|
||||
|
||||
@@ -391,10 +391,10 @@ public:
|
||||
{
|
||||
ElementalsSpawned = true;
|
||||
|
||||
Creature* ElementalOne = NULL;
|
||||
Creature* ElementalTwo = NULL;
|
||||
Creature* ElementalThree = NULL;
|
||||
Creature* ElementalFour = NULL;
|
||||
Creature* ElementalOne = nullptr;
|
||||
Creature* ElementalTwo = nullptr;
|
||||
Creature* ElementalThree = nullptr;
|
||||
Creature* ElementalFour = nullptr;
|
||||
|
||||
ElementalOne = me->SummonCreature(CREATURE_WATER_ELEMENTAL, -11168.1f, -1939.29f, 232.092f, 1.46f, TEMPSUMMON_TIMED_OR_CORPSE_DESPAWN, 90000);
|
||||
ElementalTwo = me->SummonCreature(CREATURE_WATER_ELEMENTAL, -11138.2f, -1915.38f, 232.092f, 3.00f, TEMPSUMMON_TIMED_OR_CORPSE_DESPAWN, 90000);
|
||||
|
||||
Reference in New Issue
Block a user