mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-16 18:40:28 +00:00
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:
@@ -1140,7 +1140,7 @@ class spell_q5206_test_fetid_skull : public SpellScriptLoader
|
||||
{
|
||||
Unit* caster = GetCaster();
|
||||
uint32 spellId = roll_chance_i(50) ? SPELL_CREATE_RESONATING_SKULL : SPELL_CREATE_BONE_DUST;
|
||||
caster->CastSpell(caster, spellId, true, NULL);
|
||||
caster->CastSpell(caster, spellId, true, nullptr);
|
||||
}
|
||||
|
||||
void Register()
|
||||
@@ -1570,7 +1570,7 @@ class spell_q12634_despawn_fruit_tosser : public SpellScriptLoader
|
||||
// sometimes, if you're lucky, you get a dwarf
|
||||
if (roll_chance_i(5))
|
||||
spellId = SPELL_SUMMON_ADVENTUROUS_DWARF;
|
||||
GetCaster()->CastSpell(GetCaster(), spellId, true, NULL);
|
||||
GetCaster()->CastSpell(GetCaster(), spellId, true, nullptr);
|
||||
}
|
||||
|
||||
void Register()
|
||||
@@ -1604,7 +1604,7 @@ class spell_q12683_take_sputum_sample : public SpellScriptLoader
|
||||
if (caster->HasAuraEffect(reqAuraId, 0))
|
||||
{
|
||||
uint32 spellId = GetSpellInfo()->Effects[EFFECT_0].CalcValue();
|
||||
caster->CastSpell(caster, spellId, true, NULL);
|
||||
caster->CastSpell(caster, spellId, true, nullptr);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1716,7 +1716,7 @@ class spell_q12937_relief_for_the_fallen : public SpellScriptLoader
|
||||
Player* caster = GetCaster()->ToPlayer();
|
||||
if (Creature* target = GetHitCreature())
|
||||
{
|
||||
caster->CastSpell(caster, SPELL_TRIGGER_AID_OF_THE_EARTHEN, true, NULL);
|
||||
caster->CastSpell(caster, SPELL_TRIGGER_AID_OF_THE_EARTHEN, true, nullptr);
|
||||
caster->KilledMonsterCredit(NPC_FALLEN_EARTHEN_DEFENDER, 0);
|
||||
target->DespawnOrUnsummon();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user