mirror of
https://github.com/mangosfour/server.git
synced 2025-12-14 16:37:01 +00:00
[10402] Use ObjectGuid in packets and fix some uint32 guids cases.
This commit is contained in:
parent
c545392f2e
commit
09b03b470e
24 changed files with 77 additions and 82 deletions
|
|
@ -3855,7 +3855,7 @@ void Spell::SendResurrectRequest(Player* target)
|
|||
const char* sentName = m_caster->GetTypeId() == TYPEID_PLAYER ? "" : m_caster->GetNameForLocaleIdx(target->GetSession()->GetSessionDbLocaleIndex());
|
||||
|
||||
WorldPacket data(SMSG_RESURRECT_REQUEST, (8+4+strlen(sentName)+1+1+1));
|
||||
data << uint64(m_caster->GetGUID());
|
||||
data << m_caster->GetObjectGuid();
|
||||
data << uint32(strlen(sentName) + 1);
|
||||
|
||||
data << sentName;
|
||||
|
|
@ -3871,7 +3871,7 @@ void Spell::SendPlaySpellVisual(uint32 SpellID)
|
|||
return;
|
||||
|
||||
WorldPacket data(SMSG_PLAY_SPELL_VISUAL, 8 + 4);
|
||||
data << uint64(m_caster->GetGUID());
|
||||
data << m_caster->GetObjectGuid();
|
||||
data << uint32(SpellID); // spell visual id?
|
||||
((Player*)m_caster)->GetSession()->SendPacket(&data);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue