mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-19 03:45:43 +00:00
refactor(Core): replace NULL with nullptr (#4593)
This commit is contained in:
@@ -319,7 +319,7 @@ public:
|
||||
void HandleScript(SpellEffIndex /*effIndex*/)
|
||||
{
|
||||
for (uint8 i = 0; i < 4; ++i)
|
||||
GetCaster()->CastSpell((Unit*)NULL, SPELL_COPY_OF_SUMMON_MINIONS, true);
|
||||
GetCaster()->CastSpell((Unit*)nullptr, SPELL_COPY_OF_SUMMON_MINIONS, true);
|
||||
}
|
||||
|
||||
void Register() override
|
||||
|
||||
@@ -149,7 +149,7 @@ public:
|
||||
{
|
||||
Talk(SAY_FLESH);
|
||||
me->getThreatManager().resetAllAggro();
|
||||
me->CastSpell((Unit*)NULL, SPELL_TURN_FLESH, false);
|
||||
me->CastSpell((Unit*)nullptr, SPELL_TURN_FLESH, false);
|
||||
|
||||
events.Reset();
|
||||
events.ScheduleEvent(EVENT_TURN_FLESH_REAL, 3000);
|
||||
@@ -246,7 +246,7 @@ public:
|
||||
PreventDefaultAction();
|
||||
GetUnitOwner()->getThreatManager().resetAllAggro();
|
||||
GetUnitOwner()->GetMotionMaster()->Clear();
|
||||
GetUnitOwner()->CastSpell((Unit*)NULL, SPELL_TURN_BONES, false);
|
||||
GetUnitOwner()->CastSpell((Unit*)nullptr, SPELL_TURN_BONES, false);
|
||||
GetUnitOwner()->GetAI()->DoAction(ACTION_TURN_BONES);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user