mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-24 22:26:22 +00:00
refactor(Core): replace NULL with nullptr (#4593)
This commit is contained in:
@@ -623,7 +623,7 @@ public:
|
||||
// If there are more than 30 Wisps then kill Archimonde
|
||||
if (WispCount >= 30)
|
||||
{
|
||||
Unit::DealDamage(me, me, me->GetHealth(), NULL, DIRECT_DAMAGE, SPELL_SCHOOL_MASK_NORMAL, NULL, false);
|
||||
Unit::DealDamage(me, me, me->GetHealth(), nullptr, DIRECT_DAMAGE, SPELL_SCHOOL_MASK_NORMAL, nullptr, false);
|
||||
return; // Finish the encounter and no more event repeat
|
||||
}
|
||||
DoSpawnCreature(CREATURE_ANCIENT_WISP, float(rand() % 40), float(rand() % 40), 0, 0, TEMPSUMMON_TIMED_DESPAWN_OUT_OF_COMBAT, 15000);
|
||||
|
||||
@@ -189,7 +189,7 @@ public:
|
||||
|
||||
if (target->GetPower(POWER_MANA) == 0)
|
||||
{
|
||||
target->CastSpell(target, SPELL_MARK_DAMAGE, true, NULL, aurEff);
|
||||
target->CastSpell(target, SPELL_MARK_DAMAGE, true, nullptr, aurEff);
|
||||
// Remove aura
|
||||
SetDuration(0);
|
||||
}
|
||||
|
||||
@@ -960,7 +960,7 @@ public:
|
||||
case EVENT_ACTION_PHASE3+6:
|
||||
if (Creature* cr = GetEventNpc(NPC_CITY_MAN))
|
||||
{
|
||||
cr->UpdateEntry(NPC_INFINITE_HUNTER, NULL, false);
|
||||
cr->UpdateEntry(NPC_INFINITE_HUNTER, nullptr, false);
|
||||
cr->SetFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_IMMUNE_TO_PC | UNIT_FLAG_IMMUNE_TO_NPC);
|
||||
cr->SetReactState(REACT_PASSIVE);
|
||||
}
|
||||
@@ -969,7 +969,7 @@ public:
|
||||
case EVENT_ACTION_PHASE3+7:
|
||||
if (Creature* cr = GetEventNpc(NPC_CITY_MAN4))
|
||||
{
|
||||
cr->UpdateEntry(NPC_INFINITE_AGENT, NULL, false);
|
||||
cr->UpdateEntry(NPC_INFINITE_AGENT, nullptr, false);
|
||||
cr->SetFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_IMMUNE_TO_PC | UNIT_FLAG_IMMUNE_TO_NPC);
|
||||
cr->SetReactState(REACT_PASSIVE);
|
||||
}
|
||||
@@ -978,7 +978,7 @@ public:
|
||||
case EVENT_ACTION_PHASE3+8:
|
||||
if (Creature* cr = GetEventNpc(NPC_CITY_MAN3))
|
||||
{
|
||||
cr->UpdateEntry(NPC_INFINITE_ADVERSARY, NULL, false);
|
||||
cr->UpdateEntry(NPC_INFINITE_ADVERSARY, nullptr, false);
|
||||
cr->SetReactState(REACT_AGGRESSIVE);
|
||||
cr->SetInCombatWithZone();
|
||||
cr->AddThreat(me, 0.0f);
|
||||
@@ -1573,7 +1573,7 @@ public:
|
||||
}
|
||||
else if (changeTimer >= 14500 && changeTimer < 20000)
|
||||
{
|
||||
me->UpdateEntry(NPC_RISEN_ZOMBIE, NULL, false);
|
||||
me->UpdateEntry(NPC_RISEN_ZOMBIE, nullptr, false);
|
||||
me->SetReactState(REACT_AGGRESSIVE);
|
||||
changeTimer = 20000;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user