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:
@@ -479,7 +479,7 @@ void WorldSession::HandlePetStopAttack(WorldPacket& recvData)
|
|||||||
pet->ClearInPetCombat();
|
pet->ClearInPetCombat();
|
||||||
}
|
}
|
||||||
|
|
||||||
void WorldSession::HandlePetActionHelper(Unit* pet, ObjectGuid guid1, uint16 spellid, uint16 flag, ObjectGuid guid2)
|
void WorldSession::HandlePetActionHelper(Unit* pet, ObjectGuid guid1, uint32 spellid, uint16 flag, ObjectGuid guid2)
|
||||||
{
|
{
|
||||||
CharmInfo* charmInfo = pet->GetCharmInfo();
|
CharmInfo* charmInfo = pet->GetCharmInfo();
|
||||||
if (!charmInfo)
|
if (!charmInfo)
|
||||||
|
|||||||
@@ -776,7 +776,7 @@ public: // opcodes handlers
|
|||||||
//Pet
|
//Pet
|
||||||
void HandlePetAction(WorldPacket& recvData);
|
void HandlePetAction(WorldPacket& recvData);
|
||||||
void HandlePetStopAttack(WorldPacket& recvData);
|
void HandlePetStopAttack(WorldPacket& recvData);
|
||||||
void HandlePetActionHelper(Unit* pet, ObjectGuid guid1, uint16 spellid, uint16 flag, ObjectGuid guid2);
|
void HandlePetActionHelper(Unit* pet, ObjectGuid guid1, uint32 spellid, uint16 flag, ObjectGuid guid2);
|
||||||
void HandlePetNameQuery(WorldPacket& recvData);
|
void HandlePetNameQuery(WorldPacket& recvData);
|
||||||
void HandlePetSetAction(WorldPacket& recvData);
|
void HandlePetSetAction(WorldPacket& recvData);
|
||||||
void HandlePetAbandon(WorldPacket& recvData);
|
void HandlePetAbandon(WorldPacket& recvData);
|
||||||
|
|||||||
@@ -288,7 +288,7 @@ public:
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
uint16 getMountSpellId()
|
uint32 getMountSpellId()
|
||||||
{
|
{
|
||||||
switch (m_scriptSpellId)
|
switch (m_scriptSpellId)
|
||||||
{
|
{
|
||||||
@@ -308,7 +308,7 @@ public:
|
|||||||
Unit* target = GetTarget();
|
Unit* target = GetTarget();
|
||||||
if (target->getLevel() <= 70)
|
if (target->getLevel() <= 70)
|
||||||
{
|
{
|
||||||
if (uint16 spellId = getMountSpellId())
|
if (auto spellId = getMountSpellId())
|
||||||
{
|
{
|
||||||
target->CastSpell(target, spellId, aurEff);
|
target->CastSpell(target, spellId, aurEff);
|
||||||
}
|
}
|
||||||
@@ -318,7 +318,7 @@ public:
|
|||||||
void OnRemove(AuraEffect const* /*aurEff*/, AuraEffectHandleModes /*mode*/)
|
void OnRemove(AuraEffect const* /*aurEff*/, AuraEffectHandleModes /*mode*/)
|
||||||
{
|
{
|
||||||
Unit* target = GetTarget();
|
Unit* target = GetTarget();
|
||||||
if (uint16 spellId = getMountSpellId())
|
if (auto spellId = getMountSpellId())
|
||||||
{
|
{
|
||||||
target->RemoveAurasDueToSpell(spellId);
|
target->RemoveAurasDueToSpell(spellId);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user