mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-02-02 18:43:48 +00:00
fix(Core/Misc): Change const to be after type name (#10591)
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
@@ -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
|
||||
{
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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))
|
||||
{
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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())
|
||||
{
|
||||
|
||||
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user