mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-25 14:46:24 +00:00
fix(Core/Misc): Change const to be after type name (#10591)
This commit is contained in:
@@ -70,7 +70,7 @@ struct npc_brewfest_keg_thrower : public ScriptedAI
|
||||
}
|
||||
}
|
||||
|
||||
bool CanBeSeen(const Player* player) override
|
||||
bool CanBeSeen(Player const* player) override
|
||||
{
|
||||
if (player->GetMountID() == RAM_DISPLAY_ID)
|
||||
return true;
|
||||
@@ -343,7 +343,7 @@ struct npc_dark_iron_attack_generator : public ScriptedAI
|
||||
void MoveInLineOfSight(Unit* /*who*/) override {}
|
||||
void EnterCombat(Unit*) override {}
|
||||
|
||||
void SpellHit(Unit* caster, const SpellInfo* spellInfo) override
|
||||
void SpellHit(Unit* caster, SpellInfo const* spellInfo) override
|
||||
{
|
||||
if (spellInfo->Id == SPELL_REPORT_DEATH)
|
||||
{
|
||||
@@ -733,7 +733,7 @@ struct npc_dark_iron_guzzler : public ScriptedAI
|
||||
who->CastSpell(who, SPELL_REPORT_DEATH, true);
|
||||
}
|
||||
|
||||
void SpellHit(Unit* /*caster*/, const SpellInfo* spellInfo) override
|
||||
void SpellHit(Unit* /*caster*/, SpellInfo const* spellInfo) override
|
||||
{
|
||||
if (me->IsAlive() && spellInfo->Id == SPELL_PLAYER_MUG)
|
||||
{
|
||||
|
||||
@@ -494,7 +494,7 @@ struct npc_soh_fire_trigger : public NullCreatureAI
|
||||
me->SetDisableGravity(true);
|
||||
}
|
||||
|
||||
void SpellHit(Unit* caster, const SpellInfo* spellInfo) override
|
||||
void SpellHit(Unit* caster, SpellInfo const* spellInfo) override
|
||||
{
|
||||
if (spellInfo->Id == SPELL_START_FIRE)
|
||||
{
|
||||
@@ -882,7 +882,7 @@ struct npc_hallows_end_train_fire : public NullCreatureAI
|
||||
me->CastSpell(me, SPELL_FIRE_AURA_BASE, true);
|
||||
}
|
||||
|
||||
void SpellHit(Unit* caster, const SpellInfo* spellInfo) override
|
||||
void SpellHit(Unit* caster, SpellInfo const* spellInfo) override
|
||||
{
|
||||
if (spellInfo->Id == SPELL_WATER_SPLASH && caster->ToPlayer())
|
||||
{
|
||||
@@ -998,7 +998,7 @@ struct boss_headless_horseman : public ScriptedAI
|
||||
health = param;
|
||||
}
|
||||
|
||||
void SpellHitTarget(Unit* target, const SpellInfo* spellInfo) override
|
||||
void SpellHitTarget(Unit* target, SpellInfo const* spellInfo) override
|
||||
{
|
||||
if (spellInfo->Id == SPELL_SUMMONING_RHYME_TARGET)
|
||||
{
|
||||
@@ -1007,7 +1007,7 @@ struct boss_headless_horseman : public ScriptedAI
|
||||
}
|
||||
}
|
||||
|
||||
void SpellHit(Unit* /*caster*/, const SpellInfo* spellInfo) override
|
||||
void SpellHit(Unit* /*caster*/, SpellInfo const* spellInfo) override
|
||||
{
|
||||
if (spellInfo->Id == SPELL_THROW_HEAD_BACK)
|
||||
{
|
||||
@@ -1228,7 +1228,7 @@ struct boss_headless_horseman_head : public ScriptedAI
|
||||
uint32 timer;
|
||||
bool handled;
|
||||
|
||||
void SpellHitTarget(Unit* /*target*/, const SpellInfo* spellInfo) override
|
||||
void SpellHitTarget(Unit* /*target*/, SpellInfo const* spellInfo) override
|
||||
{
|
||||
if (spellInfo->Id == SPELL_THROW_HEAD_BACK)
|
||||
{
|
||||
@@ -1239,7 +1239,7 @@ struct boss_headless_horseman_head : public ScriptedAI
|
||||
}
|
||||
}
|
||||
|
||||
void SpellHit(Unit* caster, const SpellInfo* spellInfo) override
|
||||
void SpellHit(Unit* caster, SpellInfo const* spellInfo) override
|
||||
{
|
||||
switch (spellInfo->Id)
|
||||
{
|
||||
@@ -1356,7 +1356,7 @@ struct boss_headless_horseman_pumpkin : public ScriptedAI
|
||||
me->CastSpell(me, SPELL_PUMPKIN_VISUAL, true);
|
||||
}
|
||||
|
||||
void SpellHit(Unit* /*caster*/, const SpellInfo* spellInfo) override
|
||||
void SpellHit(Unit* /*caster*/, SpellInfo const* spellInfo) override
|
||||
{
|
||||
if (spellInfo->Id == SPELL_SPROUTING)
|
||||
{
|
||||
|
||||
@@ -201,7 +201,7 @@ struct npc_pilgrims_bounty_chair : public VehicleAI
|
||||
}
|
||||
}
|
||||
|
||||
void SpellHitTarget(Unit* target, const SpellInfo* spellInfo) override
|
||||
void SpellHitTarget(Unit* target, SpellInfo const* spellInfo) override
|
||||
{
|
||||
Unit* charm = target->GetCharm();
|
||||
if (!charm || !charm->ToCreature())
|
||||
@@ -210,7 +210,7 @@ struct npc_pilgrims_bounty_chair : public VehicleAI
|
||||
charm->ToCreature()->AI()->DoAction(spellInfo->Id);
|
||||
}
|
||||
|
||||
void SpellHit(Unit* /*target*/, const SpellInfo* spellInfo) override
|
||||
void SpellHit(Unit* /*target*/, SpellInfo const* spellInfo) override
|
||||
{
|
||||
switch (spellInfo->Id)
|
||||
{
|
||||
@@ -281,7 +281,7 @@ struct npc_pilgrims_bounty_plate : public NullCreatureAI
|
||||
{
|
||||
npc_pilgrims_bounty_plate(Creature* creature) : NullCreatureAI(creature) { }
|
||||
|
||||
void SpellHit(Unit* /*caster*/, const SpellInfo* spellInfo) override
|
||||
void SpellHit(Unit* /*caster*/, SpellInfo const* spellInfo) override
|
||||
{
|
||||
switch (spellInfo->Id)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user