From f6affaf4069aec4b74872701093cbb133ce57786 Mon Sep 17 00:00:00 2001 From: VladimirMangos Date: Sat, 12 Feb 2011 22:32:27 +0300 Subject: [PATCH] [11154] Revert "[11143] Spells with unit-type and destination flag should not be LOS-dependant" This reverts commit 2e57df9f71330e278dbdf98b3f43d1d7bd5ec8d4. * For original spells referecned in commit title: Posible instead LoS check it must use outdoor check instaed ignore any LoS like checks. * Main reason for revert second part check that in _addition_ to referecned spell let ~1200 spells ignore los some from that have description ponting to need los check for its --- src/game/Spell.cpp | 4 +--- src/shared/revision_nr.h | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/game/Spell.cpp b/src/game/Spell.cpp index 7b20c2e34..39e87fcf9 100644 --- a/src/game/Spell.cpp +++ b/src/game/Spell.cpp @@ -6610,9 +6610,7 @@ bool Spell::CheckTarget( Unit* target, SpellEffectIndex eff ) // Get GO cast coordinates if original caster -> GO if (target != m_caster) if (WorldObject *caster = GetCastingObject()) - 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)) + if (!target->IsWithinLOSInMap(caster)) return false; break; } diff --git a/src/shared/revision_nr.h b/src/shared/revision_nr.h index 8e0aa02aa..c41f46827 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 "11153" + #define REVISION_NR "11154" #endif // __REVISION_NR_H__