diff options
| author | Shauren <shauren.trinity@gmail.com> | 2014-10-21 21:09:15 +0200 |
|---|---|---|
| committer | Shauren <shauren.trinity@gmail.com> | 2025-09-28 23:29:04 +0200 |
| commit | 7eab6a791ae1c039de67a80ff8bd125bf69f7ba4 (patch) | |
| tree | 33fdc30d2a282d93ff0fbd1612228c394adfa6a0 /src/server/game/Spells/SpellEffects.cpp | |
| parent | 75f036976410811d3c2629ddcddd279beb2dafb8 (diff) | |
Core/Entities: Final batch of removing implicit conversions of ObjectGuid to uint64
(cherry picked from commit 68f45e87345ff85341f835f0372f2a62b89f24d9)
Diffstat (limited to 'src/server/game/Spells/SpellEffects.cpp')
| -rw-r--r-- | src/server/game/Spells/SpellEffects.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/server/game/Spells/SpellEffects.cpp b/src/server/game/Spells/SpellEffects.cpp index 182bb113b15..4b543169854 100644 --- a/src/server/game/Spells/SpellEffects.cpp +++ b/src/server/game/Spells/SpellEffects.cpp @@ -284,8 +284,8 @@ void Spell::EffectInstaKill() finish(); WorldPacket data(SMSG_SPELLINSTAKILLLOG, 8+8+4); - data << uint64(m_caster->GetGUID()); - data << uint64(unitTarget->GetGUID()); + data << m_caster->GetGUID(); + data << unitTarget->GetGUID(); data << uint32(m_spellInfo->Id); m_caster->SendMessageToSet(&data, true); @@ -2322,8 +2322,8 @@ void Spell::EffectDispel() if (!failCount) { // Failed to dispell - dataFail << uint64(m_caster->GetGUID()); // Caster GUID - dataFail << uint64(unitTarget->GetGUID()); // Victim GUID + dataFail << m_caster->GetGUID(); // Caster GUID + dataFail << unitTarget->GetGUID(); // Victim GUID dataFail << uint32(m_spellInfo->Id); // dispel spell id } ++failCount; @@ -3679,8 +3679,8 @@ void Spell::EffectDuel() // Send request WorldPacket data(SMSG_DUEL_REQUESTED, 8 + 8); - data << uint64(pGameObj->GetGUID()); - data << uint64(caster->GetGUID()); + data << pGameObj->GetGUID(); + data << caster->GetGUID(); caster->SendDirectMessage(&data); target->SendDirectMessage(&data); @@ -4173,7 +4173,7 @@ void Spell::EffectForceDeselect() // and selection data.Initialize(SMSG_CLEAR_TARGET, 8); - data << uint64(unitCaster->GetGUID()); + data << unitCaster->GetGUID(); Trinity::MessageDistDelivererToHostile notifierClear(unitCaster, &data, dist); Cell::VisitWorldObjects(unitCaster, notifierClear, dist); @@ -4976,8 +4976,8 @@ void Spell::EffectStealBeneficialBuff() if (!failCount) { // Failed to dispell - dataFail << uint64(m_caster->GetGUID()); // Caster GUID - dataFail << uint64(unitTarget->GetGUID()); // Victim GUID + dataFail << m_caster->GetGUID(); // Caster GUID + dataFail << unitTarget->GetGUID(); // Victim GUID dataFail << uint32(m_spellInfo->Id); // dispel spell id } ++failCount; |
