mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-27 15:46:24 +00:00
fix(Core/Misc): Change const to be after type name (#10591)
This commit is contained in:
@@ -91,7 +91,7 @@ public:
|
||||
summon->CastSpell(summon, SPELL_FOCUS_FIRE_VISUAL, true);
|
||||
}
|
||||
|
||||
void SpellHitTarget(Unit* target, const SpellInfo* spellInfo) override
|
||||
void SpellHitTarget(Unit* target, SpellInfo const* spellInfo) override
|
||||
{
|
||||
if (spellInfo->Id == SPELL_FOCUS_CAST)
|
||||
target->CastSpell(target, DUNGEON_MODE(SPELL_FIERY_BLAST_N, SPELL_FIERY_BLAST_H), false);
|
||||
|
||||
@@ -240,7 +240,7 @@ public:
|
||||
akama->AI()->EnterEvadeMode();
|
||||
}
|
||||
|
||||
bool CanAIAttack(const Unit* target) const override
|
||||
bool CanAIAttack(Unit const* target) const override
|
||||
{
|
||||
return target->GetEntry() != NPC_AKAMA && target->GetEntry() != NPC_MAIEV_SHADOWSONG;
|
||||
}
|
||||
|
||||
@@ -316,7 +316,7 @@ public:
|
||||
damage = 0;
|
||||
}
|
||||
|
||||
bool CanAIAttack(const Unit* who) const override
|
||||
bool CanAIAttack(Unit const* who) const override
|
||||
{
|
||||
return who->GetGUID() == ownerGUID;
|
||||
}
|
||||
|
||||
@@ -331,7 +331,7 @@ public:
|
||||
}
|
||||
}
|
||||
|
||||
void SpellHit(Unit* caster, const SpellInfo* spell) override
|
||||
void SpellHit(Unit* caster, SpellInfo const* spell) override
|
||||
{
|
||||
if (spell->Id == SPELL_T_PHASE_MODULATOR && caster->GetTypeId() == TYPEID_PLAYER)
|
||||
{
|
||||
@@ -975,7 +975,7 @@ public:
|
||||
}
|
||||
}
|
||||
|
||||
void SpellHitTarget(Unit* target, const SpellInfo* spell) override
|
||||
void SpellHitTarget(Unit* target, SpellInfo const* spell) override
|
||||
{
|
||||
// Cast SPELL_BAD_PRESS_DAMAGE with scaled basepoints when the visual hits the target.
|
||||
// Need Fix: When SPELL_BAD_PRESS_TRIGGER hits target it triggers spell SPELL_BAD_PRESS_DAMAGE by itself
|
||||
|
||||
@@ -163,7 +163,7 @@ public:
|
||||
summoned->AI()->AttackStart(me);
|
||||
}
|
||||
|
||||
void SpellHitTarget(Unit* /*target*/, const SpellInfo* spell) override
|
||||
void SpellHitTarget(Unit* /*target*/, SpellInfo const* spell) override
|
||||
{
|
||||
if (spell->Id == SPELL_CHAIN_LIGHTNING)
|
||||
{
|
||||
@@ -512,7 +512,7 @@ public:
|
||||
summoned->AI()->AttackStart(me);
|
||||
}
|
||||
|
||||
void SpellHitTarget(Unit* /*target*/, const SpellInfo* spell) override
|
||||
void SpellHitTarget(Unit* /*target*/, SpellInfo const* spell) override
|
||||
{
|
||||
if (spell->Id == SPELL_KUR_CHAIN_LIGHTNING)
|
||||
{
|
||||
|
||||
@@ -1728,7 +1728,7 @@ public:
|
||||
PlayerGUID = who->GetGUID();
|
||||
}
|
||||
|
||||
//void SpellHit(Unit* /*caster*/, const SpellInfo* /*spell*/)
|
||||
//void SpellHit(Unit* /*caster*/, SpellInfo const* /*spell*/)
|
||||
//{
|
||||
// DoCast(me, SPELL_DE_MATERIALIZE);
|
||||
//}
|
||||
|
||||
@@ -251,7 +251,7 @@ public:
|
||||
caster->AI()->SetData(TYPE_INFERNAL, DATA_DIED);
|
||||
}
|
||||
|
||||
void SpellHit(Unit* /*caster*/, const SpellInfo* spell) override
|
||||
void SpellHit(Unit* /*caster*/, SpellInfo const* spell) override
|
||||
{
|
||||
if (spell->Id == SPELL_SUMMON_INFERNAL)
|
||||
{
|
||||
@@ -469,7 +469,7 @@ public:
|
||||
me->SetVisible(true);
|
||||
}
|
||||
|
||||
void SpellHit(Unit* caster, const SpellInfo* spell) override
|
||||
void SpellHit(Unit* caster, SpellInfo const* spell) override
|
||||
{
|
||||
if (!caster)
|
||||
return;
|
||||
@@ -612,7 +612,7 @@ public:
|
||||
events.ScheduleEvent(EVENT_SUNDER, urand(5000, 10000));
|
||||
}
|
||||
|
||||
void SpellHit(Unit* caster, const SpellInfo* spell) override
|
||||
void SpellHit(Unit* caster, SpellInfo const* spell) override
|
||||
{
|
||||
if (!caster)
|
||||
return;
|
||||
@@ -1761,7 +1761,7 @@ public:
|
||||
}
|
||||
}
|
||||
|
||||
void SpellHit(Unit* /*caster*/, const SpellInfo* spell) override
|
||||
void SpellHit(Unit* /*caster*/, SpellInfo const* spell) override
|
||||
{
|
||||
if (!tapped && spell->Id == SPELL_WHISTLE)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user