From afc9b281033b975455def9de0b9cc87b9b369178 Mon Sep 17 00:00:00 2001 From: zergtmn Date: Thu, 27 May 2010 10:00:59 +0200 Subject: [PATCH] [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 --- src/game/Spell.cpp | 6 +----- src/shared/revision_nr.h | 2 +- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/src/game/Spell.cpp b/src/game/Spell.cpp index e8b45296f..e79c4c548 100644 --- a/src/game/Spell.cpp +++ b/src/game/Spell.cpp @@ -300,11 +300,7 @@ void SpellCastTargets::write( ByteBuffer& data ) const if( m_targetMask & TARGET_FLAG_DEST_LOCATION ) { - if(m_unitTarget) - data << m_unitTarget->GetPackGUID(); - else - data << uint8(0); - + data << uint8(0); // no known cases with target pguid data << m_destX << m_destY << m_destZ; } diff --git a/src/shared/revision_nr.h b/src/shared/revision_nr.h index 9050f64f5..bdabb2268 100644 --- a/src/shared/revision_nr.h +++ b/src/shared/revision_nr.h @@ -1,4 +1,4 @@ #ifndef __REVISION_NR_H__ #define __REVISION_NR_H__ - #define REVISION_NR "9979" + #define REVISION_NR "9980" #endif // __REVISION_NR_H__