From 2e57df9f71330e278dbdf98b3f43d1d7bd5ec8d4 Mon Sep 17 00:00:00 2001 From: Feanordev Date: Sat, 12 Feb 2011 15:53:37 +0200 Subject: [PATCH] [11143] Spells with unit-type and destination flag should not be LOS-dependant Signed-off-by: Ambal --- src/game/Spell.cpp | 4 +++- src/shared/revision_nr.h | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/game/Spell.cpp b/src/game/Spell.cpp index bd6a9cb2f0d..476931d938b 100644 --- a/src/game/Spell.cpp +++ b/src/game/Spell.cpp @@ -6576,7 +6576,9 @@ bool Spell::CheckTarget( Unit* target, SpellEffectIndex eff ) // Get GO cast coordinates if original caster -> GO if (target != m_caster) if (WorldObject *caster = GetCastingObject()) - if (!target->IsWithinLOSInMap(caster)) + if (m_targets.m_targetMask != (TARGET_FLAG_UNIT | TARGET_FLAG_DEST_LOCATION) && + m_spellInfo->EffectImplicitTargetB[eff] != TARGET_ALL_ENEMY_IN_AREA_INSTANT && + !target->IsWithinLOSInMap(caster)) return false; break; } diff --git a/src/shared/revision_nr.h b/src/shared/revision_nr.h index f4fc6e3cc80..88659af7382 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 "11142" + #define REVISION_NR "11143" #endif // __REVISION_NR_H__