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

@@ -71,7 +71,7 @@ struct boss_quartermaster_zigris : public BossAI
_JustDied();
}
void SpellHitTarget(Unit* /*target*/, const SpellInfo* spellInfo) override
void SpellHitTarget(Unit* /*target*/, SpellInfo const* spellInfo) override
{
if (spellInfo->Id == SPELL_STUNBOMB || spellInfo->Id == SPELL_HOOKEDNET)
{

View File

@@ -196,7 +196,7 @@ public:
}
}
bool CanAIAttack(const Unit* /*target*/) const override { return me->IsVisible(); }
bool CanAIAttack(Unit const* /*target*/) const override { return me->IsVisible(); }
void JustReachedHome() override
{

View File

@@ -237,7 +237,7 @@ public:
}
}
void SpellHit(Unit* /*caster*/, const SpellInfo* spellInfo) override
void SpellHit(Unit* /*caster*/, SpellInfo const* spellInfo) override
{
if (spellInfo->Mechanic == MECHANIC_DISARM && _events.GetNextEventTime(EVENT_KILL_TALK) == 0)
{
@@ -250,7 +250,7 @@ public:
}
}
void SpellHitTarget(Unit* target, const SpellInfo* spellInfo) override
void SpellHitTarget(Unit* target, SpellInfo const* spellInfo) override
{
if (spellInfo->Id == SPELL_MOUNT_TARGET_MIDNIGHT)
{
@@ -355,7 +355,7 @@ public:
Talk(SAY_ATTUMEN2_DEATH);
}
void SpellHit(Unit* /*caster*/, const SpellInfo* spellInfo) override
void SpellHit(Unit* /*caster*/, SpellInfo const* spellInfo) override
{
if (spellInfo->Mechanic == MECHANIC_DISARM && _events.GetNextEventTime(EVENT_KILL_TALK) == 0)
{

View File

@@ -139,7 +139,7 @@ public:
creature->AI()->KilledUnit(who);
}
void SpellHit(Unit* /*who*/, const SpellInfo* spell) override
void SpellHit(Unit* /*who*/, SpellInfo const* spell) override
{
if (spell->Id == SPELL_INFERNAL_RELAY)
{
@@ -247,7 +247,7 @@ public:
void EnfeebleHealthEffect()
{
const SpellInfo* info = sSpellMgr->GetSpellInfo(SPELL_ENFEEBLE_EFFECT);
SpellInfo const* info = sSpellMgr->GetSpellInfo(SPELL_ENFEEBLE_EFFECT);
if (!info)
return;

View File

@@ -526,7 +526,7 @@ public:
DrinkInturrupted = true;
}
void SpellHit(Unit* /*pAttacker*/, const SpellInfo* Spell) override
void SpellHit(Unit* /*pAttacker*/, SpellInfo const* Spell) override
{
//We only care about interrupt effects and only if they are durring a spell currently being cast
if ((Spell->Effects[0].Effect != SPELL_EFFECT_INTERRUPT_CAST &&

View File

@@ -368,7 +368,7 @@ public:
me->DespawnOrUnsummon();
}
void SpellHit(Unit* /*caster*/, const SpellInfo* Spell) override
void SpellHit(Unit* /*caster*/, SpellInfo const* Spell) override
{
if ((Spell->SchoolMask == SPELL_SCHOOL_MASK_FIRE) && (!(rand() % 10)))
{
@@ -1127,7 +1127,7 @@ public:
me->DespawnOrUnsummon();
}
void SpellHit(Unit* /*caster*/, const SpellInfo* Spell) override
void SpellHit(Unit* /*caster*/, SpellInfo const* Spell) override
{
if (Spell->Id == SPELL_DRINK_POISON)
{

View File

@@ -74,7 +74,7 @@ public:
SummonList summons;
ObjectGuid CrystalGUID;
bool CanAIAttack(const Unit* who) const override
bool CanAIAttack(Unit const* who) const override
{
return who->GetPositionX() > 216.0f;
}

View File

@@ -258,7 +258,7 @@ public:
me->SetFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_SWIMMING);
}
void SpellHit(Unit* caster, const SpellInfo* pSpell) override
void SpellHit(Unit* caster, SpellInfo const* pSpell) override
{
if (!_duelInProgress && pSpell->Id == SPELL_DUEL)
{

View File

@@ -75,7 +75,7 @@ public:
Talk(SAY_AGGRO);
}
void SpellHit(Unit* caster, const SpellInfo* spell) override
void SpellHit(Unit* caster, SpellInfo const* spell) override
{
if (spell->Id == SPELL_PERSUASIVE_STRIKE && caster->GetTypeId() == TYPEID_PLAYER && me->IsAlive() && !speechCounter)
{

View File

@@ -431,7 +431,7 @@ public:
Talk(SAY_MO_KILL);
}
void SpellHit(Unit* /*who*/, const SpellInfo* spell) override
void SpellHit(Unit* /*who*/, SpellInfo const* spell) override
{
//When hit with resurrection say text
if (spell->Id == SPELL_SCARLET_RESURRECTION)

View File

@@ -293,7 +293,7 @@ public:
}
// used for shadow portal
void SpellHitTarget(Unit* target, const SpellInfo* spellinfo) override
void SpellHitTarget(Unit* target, SpellInfo const* spellinfo) override
{
uint32 room = 0;
if (spellinfo && spellinfo->Id == SPELL_SHADOW_PORTAL && target && me->GetVictim())

View File

@@ -448,7 +448,7 @@ public:
me->CastSpell(me, SPELL_DEMONIC_VAPOR_TRAIL_PERIODIC, true);
}
void SpellHitTarget(Unit*, const SpellInfo* spellInfo) override
void SpellHitTarget(Unit*, SpellInfo const* spellInfo) override
{
if (spellInfo->Id == SPELL_DEMONIC_VAPOR)
me->CastSpell(me, SPELL_SUMMON_BLAZING_DEAD, true);

View File

@@ -127,7 +127,7 @@ public:
damage = 0;
}
void SpellHit(Unit*, const SpellInfo* spell) override
void SpellHit(Unit*, SpellInfo const* spell) override
{
if (spell->Id == SPELL_TRANSFORM_SPLIT2)
EnterPhase(PHASE_HUMAN);

View File

@@ -447,7 +447,7 @@ public:
void Reset() override { }
void SpellHit(Unit* /*caster*/, const SpellInfo* spell) override
void SpellHit(Unit* /*caster*/, SpellInfo const* spell) override
{
if (spell->Id == SPELL_FIRE_BOMB_THROW)
DoCast(me, SPELL_FIRE_BOMB_DUMMY, true);
@@ -668,7 +668,7 @@ public:
void UpdateAI(uint32 /*diff*/) override { }
void SpellHit(Unit* /*caster*/, const SpellInfo* spell) override
void SpellHit(Unit* /*caster*/, SpellInfo const* spell) override
{
if (spell->Id == SPELL_HATCH_EGG)
{

View File

@@ -582,7 +582,7 @@ public:
void EnterCombat(Unit* /*target*/) override { }
void SpellHit(Unit* caster, const SpellInfo* spell) override
void SpellHit(Unit* caster, SpellInfo const* spell) override
{
if (spell->Id == SPELL_ZAP_INFORM)
DoCast(caster, SPELL_ZAP_DAMAGE, true);

View File

@@ -633,7 +633,7 @@ public:
}
}
void SpellHit(Unit*, const SpellInfo* spell) override
void SpellHit(Unit*, SpellInfo const* spell) override
{
if (spell->Id == SPELL_COSMETIC_SPEAR_THROW)
{

View File

@@ -264,7 +264,7 @@ public:
uint32 timer;
ObjectGuid _targetGUID;
void SpellHit(Unit*, const SpellInfo* spellInfo) override
void SpellHit(Unit*, SpellInfo const* spellInfo) override
{
if (spellInfo->Id == SPELL_SHOOT && roll_chance_i(7))
me->CastSpell(me, SPELL_DEATHS_DOOR, true);

View File

@@ -61,7 +61,7 @@ public:
me->SetUInt32Value(UNIT_NPC_EMOTESTATE, EMOTE_STATE_NONE);
}
void SpellHit(Unit* caster, const SpellInfo* spell) override
void SpellHit(Unit* caster, SpellInfo const* spell) override
{
if (bReset || spell->Id != 3607)
return;