From 413a44d114e4d17cc229ae9e0ce57594c653e528 Mon Sep 17 00:00:00 2001 From: balrok Date: Sun, 1 Nov 2009 11:22:24 -0500 Subject: [PATCH] [8806] remove wrong erroroutput for teleportspells they are just handled in a different way - so this errorcheck isn't valid for those spells --- src/game/Spell.cpp | 3 +++ src/shared/revision_nr.h | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/game/Spell.cpp b/src/game/Spell.cpp index 954fffb19..be4e65aab 100644 --- a/src/game/Spell.cpp +++ b/src/game/Spell.cpp @@ -1994,6 +1994,9 @@ void Spell::SetTargetMap(uint32 effIndex,uint32 targetMode,UnitList& TagUnitMap) SpellTargetPosition const* st = sSpellMgr.GetSpellTargetPosition(m_spellInfo->Id); if(st) { + // teleportspells are handled in another way + if (m_spellInfo->Effect[effIndex] == SPELL_EFFECT_TELEPORT_UNITS) + break; if (st->target_mapId == m_caster->GetMapId()) m_targets.setDestination(st->target_X, st->target_Y, st->target_Z); else diff --git a/src/shared/revision_nr.h b/src/shared/revision_nr.h index 93fd9866e..ccd0b8d40 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 "8805" + #define REVISION_NR "8806" #endif // __REVISION_NR_H__