[9980] Remove target guid in spell with TARGET_FLAG_DEST_LOCATION

Corrects spell animations and visual going in weird directions for these kind of spells

Signed-off-by: NoFantasy <nofantasy@nf.no>
This commit is contained in:
zergtmn 2010-05-27 10:00:59 +02:00 committed by NoFantasy
parent 2681cd7de7
commit afc9b28103
2 changed files with 2 additions and 6 deletions

View file

@ -300,11 +300,7 @@ void SpellCastTargets::write( ByteBuffer& data ) const
if( m_targetMask & TARGET_FLAG_DEST_LOCATION ) if( m_targetMask & TARGET_FLAG_DEST_LOCATION )
{ {
if(m_unitTarget) data << uint8(0); // no known cases with target pguid
data << m_unitTarget->GetPackGUID();
else
data << uint8(0);
data << m_destX << m_destY << m_destZ; data << m_destX << m_destY << m_destZ;
} }

View file

@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__ #ifndef __REVISION_NR_H__
#define __REVISION_NR_H__ #define __REVISION_NR_H__
#define REVISION_NR "9979" #define REVISION_NR "9980"
#endif // __REVISION_NR_H__ #endif // __REVISION_NR_H__