mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-02-15 00:06:11 +00:00
fix(Core/Misc): Change const to be after type name (#10591)
This commit is contained in:
@@ -65,7 +65,7 @@ public:
|
||||
disabled = true;
|
||||
break;
|
||||
case 34475:
|
||||
if (const SpellInfo* spellInfo = sSpellMgr->GetSpellInfo(SPELL_ARCANE_CHARGES))
|
||||
if (SpellInfo const* spellInfo = sSpellMgr->GetSpellInfo(SPELL_ARCANE_CHARGES))
|
||||
Spell::SendCastResult(player, spellInfo, 1, SPELL_FAILED_NOT_ON_GROUND);
|
||||
break;
|
||||
}
|
||||
@@ -209,7 +209,7 @@ public:
|
||||
{
|
||||
player->SendEquipError(EQUIP_ERR_NONE, item, nullptr);
|
||||
|
||||
if (const SpellInfo* spellInfo = sSpellMgr->GetSpellInfo(SPELL_PETROV_BOMB))
|
||||
if (SpellInfo const* spellInfo = sSpellMgr->GetSpellInfo(SPELL_PETROV_BOMB))
|
||||
Spell::SendCastResult(player, spellInfo, 1, SPELL_FAILED_NOT_HERE);
|
||||
|
||||
return true;
|
||||
|
||||
@@ -183,7 +183,7 @@ public:
|
||||
}
|
||||
|
||||
uint32 timer, interval;
|
||||
const SpellInfo* spell;
|
||||
SpellInfo const* spell;
|
||||
|
||||
void UpdateAI(uint32 diff) override
|
||||
{
|
||||
|
||||
@@ -393,7 +393,7 @@ public:
|
||||
DoMeleeAttackIfReady();
|
||||
}
|
||||
|
||||
void SpellHit(Unit* /*Caster*/, const SpellInfo* Spell) override
|
||||
void SpellHit(Unit* /*Caster*/, SpellInfo const* Spell) override
|
||||
{
|
||||
uint32 serpentStings[12] = { 1978, 13549, 13550, 13551, 13552, 13553, 13554, 13555, 25295, 27016, 49000, 49001 };
|
||||
|
||||
@@ -774,7 +774,7 @@ public:
|
||||
DoMeleeAttackIfReady();
|
||||
}
|
||||
|
||||
void SpellHit(Unit* /*Caster*/, const SpellInfo* Spell) override
|
||||
void SpellHit(Unit* /*Caster*/, SpellInfo const* Spell) override
|
||||
{
|
||||
if (!InNormalForm())
|
||||
{
|
||||
@@ -984,7 +984,7 @@ public:
|
||||
DoMeleeAttackIfReady();
|
||||
}
|
||||
|
||||
void SpellHit(Unit* /*Caster*/, const SpellInfo* Spell) override
|
||||
void SpellHit(Unit* /*Caster*/, SpellInfo const* Spell) override
|
||||
{
|
||||
if (InNormalForm())
|
||||
{
|
||||
@@ -1155,7 +1155,7 @@ public:
|
||||
DoMeleeAttackIfReady();
|
||||
}
|
||||
|
||||
void SpellHit(Unit* /*Caster*/, const SpellInfo* Spell) override
|
||||
void SpellHit(Unit* /*Caster*/, SpellInfo const* Spell) override
|
||||
{
|
||||
if (InNormalForm())
|
||||
{
|
||||
|
||||
@@ -2245,7 +2245,7 @@ public:
|
||||
break;
|
||||
}
|
||||
|
||||
const SpellInfo* spellInfo = sSpellMgr->GetSpellInfo(spellId);
|
||||
SpellInfo const* spellInfo = sSpellMgr->GetSpellInfo(spellId);
|
||||
|
||||
if (spellInfo && spellInfo->Effects[0].Effect == SPELL_EFFECT_SUMMON_OBJECT_WILD)
|
||||
return spellInfo->Effects[0].MiscValue;
|
||||
|
||||
Reference in New Issue
Block a user