fix(Core/Misc): Change const to be after type name (#10591)

This commit is contained in:
Kitzunu
2022-02-14 20:05:45 +01:00
committed by GitHub
parent 9b83abca39
commit 455899dc75
168 changed files with 438 additions and 438 deletions

View File

@@ -319,7 +319,7 @@ public:
void DoCastProtection()
{
// lets get spell info
const SpellInfo* info = sSpellMgr->GetSpellInfo(SPELL_PROTECTION_OF_ELUNE);
SpellInfo const* info = sSpellMgr->GetSpellInfo(SPELL_PROTECTION_OF_ELUNE);
if (!info)
return;

View File

@@ -85,7 +85,7 @@ public:
events.ScheduleEvent(EVENT_SPELL_TIME_STOP, 20000);
}
void SpellHitTarget(Unit* target, const SpellInfo* spellInfo) override
void SpellHitTarget(Unit* target, SpellInfo const* spellInfo) override
{
if (spellInfo->Id == SPELL_TIME_STEP_H || spellInfo->Id == SPELL_TIME_STEP_N)
{

View File

@@ -1568,7 +1568,7 @@ public:
changeTimer = time;
}
void SpellHit(Unit* caster, const SpellInfo* spellInfo) override
void SpellHit(Unit* caster, SpellInfo const* spellInfo) override
{
if (spellInfo->Id == SPELL_ARTHAS_CRUSADER_STRIKE)
{

View File

@@ -510,7 +510,7 @@ public:
}
}
void SpellHitTarget(Unit* target, const SpellInfo* spell) override
void SpellHitTarget(Unit* target, SpellInfo const* spell) override
{
if (target->IsPlayer() && spell->DurationEntry && spell->DurationEntry->ID == 328 && spell->Effects[EFFECT_1].TargetA.GetTarget() == 1 && (spell->Effects[EFFECT_1].Amplitude == 50 || spell->Effects[EFFECT_1].Amplitude == 215)) // Deep Breath
{

View File

@@ -157,7 +157,7 @@ struct boss_twinemperorsAI : public ScriptedAI
}
}
void SpellHit(Unit* caster, const SpellInfo* entry) override
void SpellHit(Unit* caster, SpellInfo const* entry) override
{
if (caster == me)
return;

View File

@@ -69,7 +69,7 @@ public:
void EnterCombat(Unit* /*who*/) override { }
void SpellHit(Unit* unit, const SpellInfo* spell) override
void SpellHit(Unit* unit, SpellInfo const* spell) override
{
if (spellhit)
return;

View File

@@ -101,7 +101,7 @@ public:
}
}
void SpellHit(Unit* Caster, const SpellInfo* Spell) override
void SpellHit(Unit* Caster, SpellInfo const* Spell) override
{
if (Spell->SpellFamilyFlags[2] & 0x080000000)
{

View File

@@ -218,7 +218,7 @@ public:
}
}
void SpellHit(Unit* /*pCaster*/, const SpellInfo* pSpell) override
void SpellHit(Unit* /*pCaster*/, SpellInfo const* pSpell) override
{
if (HasFollowState(STATE_FOLLOW_INPROGRESS | STATE_FOLLOW_PAUSED) && pSpell->Id == SPELL_AWAKEN)
ClearSleeping();

View File

@@ -615,7 +615,7 @@ public:
DoCast(SPELL_OMEN_SUMMON_SPOTLIGHT);
}
void SpellHit(Unit* /*caster*/, const SpellInfo* spell) override
void SpellHit(Unit* /*caster*/, SpellInfo const* spell) override
{
if (spell->Id == SPELL_ELUNE_CANDLE)
{

View File

@@ -188,7 +188,7 @@ public:
me->HandleEmoteCommand(EMOTE_ONESHOT_SALUTE);
}
void SpellHit(Unit* /*caster*/, const SpellInfo* spell) override
void SpellHit(Unit* /*caster*/, SpellInfo const* spell) override
{
if (spell->Id == SPELL_FLARE || spell->Id == SPELL_FOLLY)
{

View File

@@ -230,7 +230,7 @@ public:
}
}
void SpellHit(Unit* /*pCaster*/, const SpellInfo* pSpell) override
void SpellHit(Unit* /*pCaster*/, SpellInfo const* pSpell) override
{
if (HasFollowState(STATE_FOLLOW_INPROGRESS | STATE_FOLLOW_PAUSED) && pSpell->Id == SPELL_REVIVE_RINGO)
ClearFaint();