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:
parent
38903b5dfb
commit
1f89282b22
325 changed files with 2348 additions and 2348 deletions
|
|
@ -84,7 +84,7 @@ public:
|
|||
if (me->isAttackReady() && !me->IsNonMeleeSpellCast(false))
|
||||
{
|
||||
bool Healing = false;
|
||||
SpellInfo const* info = NULL;
|
||||
SpellInfo const* info = nullptr;
|
||||
|
||||
//Select a healing spell if less than 30% hp
|
||||
if (HealthBelowPct(30))
|
||||
|
|
@ -115,7 +115,7 @@ public:
|
|||
if (!me->IsNonMeleeSpellCast(false))
|
||||
{
|
||||
bool Healing = false;
|
||||
SpellInfo const* info = NULL;
|
||||
SpellInfo const* info = nullptr;
|
||||
|
||||
//Select a healing spell if less than 30% hp ONLY 33% of the time
|
||||
if (HealthBelowPct(30) && rand() % 3 == 0)
|
||||
|
|
@ -166,7 +166,7 @@ public:
|
|||
{
|
||||
trigger_periodicAI(Creature* creature) : NullCreatureAI(creature)
|
||||
{
|
||||
spell = me->m_spells[0] ? sSpellMgr->GetSpellInfo(me->m_spells[0]) : NULL;
|
||||
spell = me->m_spells[0] ? sSpellMgr->GetSpellInfo(me->m_spells[0]) : nullptr;
|
||||
interval = me->GetAttackTime(BASE_ATTACK);
|
||||
timer = interval;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue