mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-21 12:47:07 +00:00
refactor(Core): replace NULL with nullptr (#4593)
This commit is contained in:
@@ -650,7 +650,7 @@ public:
|
||||
}
|
||||
break;
|
||||
case EVENT_TWILIGHT_MENDING:
|
||||
me->CastSpell((Unit*)NULL, SPELL_TWILIGHT_MENDING, true);
|
||||
me->CastSpell((Unit*)nullptr, SPELL_TWILIGHT_MENDING, true);
|
||||
break;
|
||||
case EVENT_CHECK_CORPOREALITY:
|
||||
UpdateCorporeality();
|
||||
@@ -751,7 +751,7 @@ public:
|
||||
void UpdateAI(uint32 /*diff*/) override
|
||||
{
|
||||
if (!me->HasUnitState(UNIT_STATE_CASTING))
|
||||
me->CastSpell((Unit*)NULL, SPELL_TRACK_ROTATION, false);
|
||||
me->CastSpell((Unit*)nullptr, SPELL_TRACK_ROTATION, false);
|
||||
}
|
||||
|
||||
void DoAction(int32 action) override
|
||||
@@ -1122,7 +1122,7 @@ public:
|
||||
{
|
||||
Unit* caster = GetCaster();
|
||||
caster->CastSpell(caster->GetPositionX(), caster->GetPositionY(), caster->GetPositionZ(), SPELL_SUMMON_TWILIGHT_PORTAL, true);
|
||||
caster->GetMap()->SummonCreature(NPC_TWILIGHT_HALION, caster->ToCreature()->GetHomePosition(), NULL, 0, caster);
|
||||
caster->GetMap()->SummonCreature(NPC_TWILIGHT_HALION, caster->ToCreature()->GetHomePosition(), nullptr, 0, caster);
|
||||
}
|
||||
|
||||
void Register() override
|
||||
@@ -1258,7 +1258,7 @@ public:
|
||||
void HandlePeriodic(AuraEffect const* aurEff)
|
||||
{
|
||||
PreventDefaultAction();
|
||||
GetUnitOwner()->CastSpell((Unit*)NULL, GetSpellInfo()->Effects[aurEff->GetEffIndex()].TriggerSpell, true);
|
||||
GetUnitOwner()->CastSpell((Unit*)nullptr, GetSpellInfo()->Effects[aurEff->GetEffIndex()].TriggerSpell, true);
|
||||
}
|
||||
|
||||
void Register() override
|
||||
|
||||
Reference in New Issue
Block a user