mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-21 12:47:07 +00:00
fix(Core/Misc): Change const to be after type name (#10591)
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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)
|
||||
{
|
||||
|
||||
@@ -642,7 +642,7 @@ public:
|
||||
}
|
||||
}
|
||||
|
||||
void SpellHit(Unit* /*caster*/, const SpellInfo* spell) override
|
||||
void SpellHit(Unit* /*caster*/, SpellInfo const* spell) override
|
||||
{
|
||||
switch( spell->Id )
|
||||
{
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user