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

@@ -118,7 +118,7 @@ public:
}
}
void SpellHitTarget(Unit* /*target*/, const SpellInfo* spell) override
void SpellHitTarget(Unit* /*target*/, SpellInfo const* spell) override
{
if (spell->Id == SPELL_TELEPORT)
{

View File

@@ -144,7 +144,7 @@ public:
}
}
void SpellHitTarget(Unit* target, const SpellInfo* spell) override
void SpellHitTarget(Unit* target, SpellInfo const* spell) override
{
if (spell->Id == SPELL_PHANTOM_BLAST_H)
bAchiev = false;
@@ -165,7 +165,7 @@ public:
}
}
bool CanAIAttack(const Unit* target) const override { return target->GetPositionZ() > 706.5f; }
bool CanAIAttack(Unit const* target) const override { return target->GetPositionZ() > 706.5f; }
void UpdateAI(uint32 diff) override
{

View File

@@ -1460,7 +1460,7 @@ public:
summons.Despawn(s);
}
void SpellHitTarget(Unit* target, const SpellInfo* spell) override
void SpellHitTarget(Unit* target, SpellInfo const* spell) override
{
if (target && target->IsAlive() && spell->Id == SPELL_LICH_KING_ZAP_PLAYER)
Unit::DealDamage(me, target, 10000);

View File

@@ -169,7 +169,7 @@ public:
}
}
void SpellHitTarget(Unit* /*target*/, const SpellInfo* spell) override
void SpellHitTarget(Unit* /*target*/, SpellInfo const* spell) override
{
if (spell->Id == uint32(SPELL_SARONITE_TRIGGERED))
{

View File

@@ -93,7 +93,7 @@ public:
pInstance->SetData(DATA_ICK, NOT_STARTED);
}
bool CanAIAttack(const Unit* /*who*/) const override
bool CanAIAttack(Unit const* /*who*/) const override
{
return pInstance && pInstance->GetData(DATA_INSTANCE_PROGRESS) >= INSTANCE_PROGRESS_FINISHED_INTRO;
}
@@ -113,7 +113,7 @@ public:
pInstance->SetData(DATA_ICK, IN_PROGRESS);
}
void SpellHitTarget(Unit* target, const SpellInfo* spell) override
void SpellHitTarget(Unit* target, SpellInfo const* spell) override
{
if (!target || !spell)
return;

View File

@@ -214,7 +214,7 @@ public:
Talk(RAND(SAY_SLAY_1, SAY_SLAY_2));
}
bool CanAIAttack(const Unit* who) const override
bool CanAIAttack(Unit const* who) const override
{
switch (who->GetEntry())
{

View File

@@ -877,7 +877,7 @@ public:
uint16 timer1;
uint16 timer2;
void SpellHitTarget(Unit* target, const SpellInfo* spell) override
void SpellHitTarget(Unit* target, SpellInfo const* spell) override
{
if (target && spell && target->GetTypeId() == TYPEID_PLAYER && spell->Id == 70827 && pInstance)
pInstance->SetData(DATA_ACHIEV_DONT_LOOK_UP, 0);
@@ -1112,7 +1112,7 @@ public:
me->ApplySpellImmune(0, IMMUNITY_ID, 70827, true);
}
bool CanAIAttack(const Unit* who) const override
bool CanAIAttack(Unit const* who) const override
{
return who->GetEntry() == NPC_FALLEN_WARRIOR;
}
@@ -1181,7 +1181,7 @@ public:
}
}
void SpellHitTarget(Unit* target, const SpellInfo* spell) override
void SpellHitTarget(Unit* target, SpellInfo const* spell) override
{
if ((spell->Id == SPELL_TELEPORT_JAINA || spell->Id == SPELL_TELEPORT_SYLVANAS) && target && target->GetTypeId() == TYPEID_PLAYER)
{