Core/PacketIO: Updates and enabled a bunch of opcodes
This commit is contained in:
1 parent
15ef29800a
commit
e74c0e9f00
15 files changed
+201
-109
No files matched your search
@@ -13200,7 +13200,7 @@ Player* Unit::GetSpellModOwner() const
|
||||
}
|
||||
|
||||
///----------Pet responses methods-----------------
|
||||
void Unit::SendPetCastFail(uint32 spellid, SpellCastResult result)
|
||||
void Unit::SendPetCastFail(uint8 castCount, SpellInfo const* spellInfo, SpellCastResult result)
|
||||
{
|
||||
if (result == SPELL_CAST_OK)
|
||||
return;
|
||||
@@ -13209,11 +13209,7 @@ void Unit::SendPetCastFail(uint32 spellid, SpellCastResult result)
|
||||
if (!owner || owner->GetTypeId() != TYPEID_PLAYER)
|
||||
return;
|
||||
|
||||
WorldPacket data(SMSG_PET_CAST_FAILED, 1 + 4 + 1);
|
||||
data << uint8(0); // cast count
|
||||
data << uint32(spellid);
|
||||
data << uint8(result);
|
||||
owner->ToPlayer()->GetSession()->SendPacket(&data);
|
||||
Spell::SendCastResult(owner->ToPlayer(), spellInfo, 0, result, SPELL_CUSTOM_ERROR_NONE, SMSG_PET_CAST_FAILED);
|
||||
}
|
||||
|
||||
void Unit::SendPetActionFeedback(uint8 msg)
|
||||
|
||||
Reference in new issue
Block a user