Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

[434][Core/PacketIO] SMSG_SPELL_GO with TARGET_FLAG_DEST_LOCATION #7439

Closed
wants to merge 2 commits into from

3 participants

@cyberbrest

No description provided.

@Chaplain Chaplain commented on the diff
src/server/game/Spells/Spell.cpp
@@ -4010,6 +4010,19 @@ void Spell::SendSpellGo()
if (m_targets.GetTargetMask() & TARGET_FLAG_DEST_LOCATION)
{
data << uint8(0);
+
+ WorldLocation const* loc = m_targets.GetDstPos();
+ if(loc)

Don't hate me, but codestyle should be applied

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
@Shauren
Owner

This is incorrect, target destination is sent in SpellCastTargets::Write

@Shauren Shauren closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Aug 19, 2012
  1. @cyberbrest
  2. @cyberbrest

    typo

    cyberbrest authored
This page is out of date. Refresh to see the latest.
Showing with 13 additions and 0 deletions.
  1. +13 −0 src/server/game/Spells/Spell.cpp
View
13 src/server/game/Spells/Spell.cpp
@@ -4010,6 +4010,19 @@ void Spell::SendSpellGo()
if (m_targets.GetTargetMask() & TARGET_FLAG_DEST_LOCATION)
{
data << uint8(0);
+
+ WorldLocation const* loc = m_targets.GetDstPos();
+ if(loc)

Don't hate me, but codestyle should be applied

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
+ {
+ data << float(loc->m_positionX);
+ data << float(loc->m_positionY);
+ data << float(loc->m_positionZ);
+ }else
+ {
+ data << float(0);
+ data << float(0);
+ data << float(0);
+ }
}
if (m_targets.GetTargetMask() & TARGET_FLAG_EXTRA_TARGETS)
Something went wrong with that request. Please try again.