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:
@@ -170,7 +170,7 @@ class boss_akilzon : public CreatureScript
|
||||
if (Unit* target = (*i))
|
||||
{
|
||||
if (Cloud && !Cloud->IsWithinDist(target, 6, false))
|
||||
Cloud->CastCustomSpell(target, SPELL_ZAP, &bp0, NULL, NULL, true, 0, 0, me->GetGUID());
|
||||
Cloud->CastCustomSpell(target, SPELL_ZAP, &bp0, nullptr, nullptr, true, 0, 0, me->GetGUID());
|
||||
}
|
||||
}
|
||||
|
||||
@@ -188,7 +188,7 @@ class boss_akilzon : public CreatureScript
|
||||
trigger->SetHealth(100000);
|
||||
trigger->RemoveFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NOT_SELECTABLE);
|
||||
if (Cloud)
|
||||
Cloud->CastCustomSpell(trigger, /*43661*/SPELL_ZAP, &bp0, NULL, NULL, true, 0, 0, Cloud->GetGUID());
|
||||
Cloud->CastCustomSpell(trigger, /*43661*/SPELL_ZAP, &bp0, nullptr, nullptr, true, 0, 0, Cloud->GetGUID());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -453,7 +453,7 @@ class boss_hexlord_malacrass : public CreatureScript
|
||||
void UseAbility()
|
||||
{
|
||||
uint8 random = urand(0, 2);
|
||||
Unit* target = NULL;
|
||||
Unit* target = nullptr;
|
||||
switch (PlayerAbility[PlayerClass][random].target)
|
||||
{
|
||||
case ABILITY_TARGET_SELF:
|
||||
|
||||
@@ -184,7 +184,7 @@ class boss_janalai : public CreatureScript
|
||||
void FireWall()
|
||||
{
|
||||
uint8 WallNum;
|
||||
Creature* wall = NULL;
|
||||
Creature* wall = nullptr;
|
||||
for (uint8 i = 0; i < 4; ++i)
|
||||
{
|
||||
if (i == 0 || i == 2)
|
||||
|
||||
@@ -252,7 +252,7 @@ class boss_zuljin : public CreatureScript
|
||||
|
||||
void SpawnAdds()
|
||||
{
|
||||
Creature* creature = NULL;
|
||||
Creature* creature = nullptr;
|
||||
for (uint8 i = 0; i < 4; ++i)
|
||||
{
|
||||
creature = me->SummonCreature(SpiritInfo[i].entry, SpiritInfo[i].x, SpiritInfo[i].y, SpiritInfo[i].z, SpiritInfo[i].orient, TEMPSUMMON_DEAD_DESPAWN, 0);
|
||||
|
||||
Reference in New Issue
Block a user