mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-02-16 08:46:09 +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;
|
||||
}
|
||||
|
||||
@@ -63,7 +63,7 @@ public:
|
||||
switch( go->GetEntry() )
|
||||
{
|
||||
case GO_WHELP_SPAWNER:
|
||||
go->CastSpell((Unit*)NULL, 17646);
|
||||
go->CastSpell((Unit*)nullptr, 17646);
|
||||
if( Creature* onyxia = instance->GetCreature(m_uiOnyxiasGUID) )
|
||||
onyxia->AI()->DoAction(-1);
|
||||
break;
|
||||
|
||||
@@ -67,7 +67,7 @@ public:
|
||||
{
|
||||
_JustDied();
|
||||
if (Creature* Ossirian = me->GetMap()->GetCreature(instance->GetData64(DATA_OSSIRIAN)))
|
||||
sCreatureTextMgr->SendChat(Ossirian, SAY_KURINAXX_DEATH, NULL, CHAT_MSG_ADDON, LANG_ADDON, TEXT_RANGE_ZONE);
|
||||
sCreatureTextMgr->SendChat(Ossirian, SAY_KURINAXX_DEATH, nullptr, CHAT_MSG_ADDON, LANG_ADDON, TEXT_RANGE_ZONE);
|
||||
}
|
||||
|
||||
void UpdateAI(uint32 diff) override
|
||||
|
||||
@@ -440,7 +440,7 @@ public:
|
||||
|
||||
void JustRespawned() override
|
||||
{
|
||||
me->UpdateEntry(RAND(NPC_AGED_KODO, NPC_DYING_KODO, NPC_ANCIENT_KODO), NULL, false);
|
||||
me->UpdateEntry(RAND(NPC_AGED_KODO, NPC_DYING_KODO, NPC_ANCIENT_KODO), nullptr, false);
|
||||
}
|
||||
|
||||
void MoveInLineOfSight(Unit* who) override
|
||||
@@ -463,7 +463,7 @@ public:
|
||||
if (!(caster->HasAura(SPELL_KODO_KOMBO_PLAYER_BUFF) || me->HasAura(SPELL_KODO_KOMBO_DESPAWN_BUFF))
|
||||
&& (me->GetEntry() == NPC_AGED_KODO || me->GetEntry() == NPC_DYING_KODO || me->GetEntry() == NPC_ANCIENT_KODO))
|
||||
{
|
||||
me->UpdateEntry(NPC_TAMED_KODO, NULL, false);
|
||||
me->UpdateEntry(NPC_TAMED_KODO, nullptr, false);
|
||||
EnterEvadeMode();
|
||||
me->GetMotionMaster()->MoveFollow(caster, PET_FOLLOW_DIST, me->GetFollowAngle());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user