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

@@ -137,7 +137,7 @@ public:
pInstance->SetData(BOSS_ARGENT_CHALLENGE, IN_PROGRESS);
}
void SpellHit(Unit* /*caster*/, const SpellInfo* spell) override
void SpellHit(Unit* /*caster*/, SpellInfo const* spell) override
{
if (spell->Id == 66905 && me->GetHealth() == 1) // hammer throw back damage (15k)
me->CastSpell(me, 68197, true);

View File

@@ -187,7 +187,7 @@ public:
}
}
void SpellHitTarget(Unit* /*target*/, const SpellInfo* spell) override
void SpellHitTarget(Unit* /*target*/, SpellInfo const* spell) override
{
switch( spell->Id )
{
@@ -410,7 +410,7 @@ public:
events.RescheduleEvent(2, urand(3000, 4000)); // claw
}
void SpellHit(Unit* /*caster*/, const SpellInfo* spell) override
void SpellHit(Unit* /*caster*/, SpellInfo const* spell) override
{
if (spell->Id == SPELL_BK_GHOUL_EXPLODE)
{
@@ -419,7 +419,7 @@ public:
}
}
void SpellHitTarget(Unit* target, const SpellInfo* spell) override
void SpellHitTarget(Unit* target, SpellInfo const* spell) override
{
switch(spell->Id)
{

View File

@@ -642,7 +642,7 @@ public:
}
}
void SpellHit(Unit* /*caster*/, const SpellInfo* spell) override
void SpellHit(Unit* /*caster*/, SpellInfo const* spell) override
{
switch( spell->Id )
{

View File

@@ -416,7 +416,7 @@ public:
ScriptedAI::MoveInLineOfSight(who);
}
bool CanAIAttack(const Unit* target) const override
bool CanAIAttack(Unit const* target) const override
{
return target->GetEntry() != NPC_FROST_SPHERE;
}
@@ -505,7 +505,7 @@ public:
me->m_Events.AddEvent(new HideNpcEvent(*me), me->m_Events.CalculateTime(5000));
}
bool CanAIAttack(const Unit* target) const override
bool CanAIAttack(Unit const* target) const override
{
return target->GetEntry() != NPC_FROST_SPHERE && !me->HasFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NON_ATTACKABLE);
}
@@ -569,7 +569,7 @@ public:
}
}
void SpellHit(Unit* /*caster*/, const SpellInfo* spell) override
void SpellHit(Unit* /*caster*/, SpellInfo const* spell) override
{
if( spell->Id == SPELL_SPIKE_FAIL )
{
@@ -640,7 +640,7 @@ public:
}
}
void SpellHitTarget(Unit* target, const SpellInfo* spell) override
void SpellHitTarget(Unit* target, SpellInfo const* spell) override
{
if( !target || !spell )
return;
@@ -713,7 +713,7 @@ public:
me->m_Events.AddEvent(new HideNpcEvent(*me), me->m_Events.CalculateTime(5000));
}
bool CanAIAttack(const Unit* target) const override
bool CanAIAttack(Unit const* target) const override
{
return target->GetEntry() != NPC_FROST_SPHERE;
}

View File

@@ -145,7 +145,7 @@ public:
pInstance->SetData(TYPE_JARAXXUS, IN_PROGRESS);
}
void SpellHit(Unit* caster, const SpellInfo* spell) override
void SpellHit(Unit* caster, SpellInfo const* spell) override
{
switch( spell->Id )
{
@@ -392,7 +392,7 @@ public:
events.RescheduleEvent(EVENT_SPELL_MISTRESS_KISS, urand(10000, 15000));
}
void SpellHit(Unit* /*caster*/, const SpellInfo* /*spell*/) override
void SpellHit(Unit* /*caster*/, SpellInfo const* /*spell*/) override
{
//if (caster && spell && spell->Id == 66287 /*control vehicle*/)
// caster->ClearUnitState(UNIT_STATE_ONVEHICLE);

View File

@@ -747,7 +747,7 @@ public:
if( !count || !GetOwner() )
return;
if( const SpellInfo* se = GetAura()->GetSpellInfo() )
if( SpellInfo const* se = GetAura()->GetSpellInfo() )
if( Unit* owner = GetOwner()->ToUnit() )
{
uint32 auraId = 0;

View File

@@ -107,7 +107,7 @@ public:
}
}
bool IsValidDedicatedInsanityItem(const ItemTemplate* item)
bool IsValidDedicatedInsanityItem(ItemTemplate const* item)
{
if (!item) // should not happen, but checked in GetAverageItemLevel()
return true;