Core/PacketIO: Updates and enabled a bunch of opcodes

This commit is contained in:
Shauren committed 2013-06-23 00:07:25 +02:00
1 parent 15ef29800a
commit e74c0e9f00
15 files changed
+201 -109

No files matched your search

+2 -6
View File
@@ -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)