[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
This commit is contained in:
VladimirMangos 2011-02-12 22:32:27 +03:00
parent 709dd6fed8
commit f6affaf406
2 changed files with 2 additions and 4 deletions

View file

@ -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;
}