chore(Core/Spell): SpellId's should always be uint32 (#6466)

* chore(Core/Spell): SpellId's should always be uint32

* Update spell_item.cpp
This commit is contained in:
Kitzunu
2021-06-25 02:11:36 +02:00
committed by GitHub
parent ea5b1b3846
commit 5d66e57181
3 changed files with 5 additions and 5 deletions

View File

@@ -288,7 +288,7 @@ public:
return true;
}
uint16 getMountSpellId()
uint32 getMountSpellId()
{
switch (m_scriptSpellId)
{
@@ -308,7 +308,7 @@ public:
Unit* target = GetTarget();
if (target->getLevel() <= 70)
{
if (uint16 spellId = getMountSpellId())
if (auto spellId = getMountSpellId())
{
target->CastSpell(target, spellId, aurEff);
}
@@ -318,7 +318,7 @@ public:
void OnRemove(AuraEffect const* /*aurEff*/, AuraEffectHandleModes /*mode*/)
{
Unit* target = GetTarget();
if (uint16 spellId = getMountSpellId())
if (auto spellId = getMountSpellId())
{
target->RemoveAurasDueToSpell(spellId);
}