[11143] Spells with unit-type and destination flag should not be LOS-dependant

Signed-off-by: Ambal <pogrebniak@gala.net>
This commit is contained in:
Feanordev 2011-02-12 15:53:37 +02:00 committed by Ambal
parent 4483cbc06d
commit 01e4f25888
2 changed files with 4 additions and 2 deletions

View file

@ -6576,7 +6576,9 @@ bool Spell::CheckTarget( Unit* target, SpellEffectIndex eff )
// Get GO cast coordinates if original caster -> GO // Get GO cast coordinates if original caster -> GO
if (target != m_caster) if (target != m_caster)
if (WorldObject *caster = GetCastingObject()) 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; return false;
break; break;
} }

View file

@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__ #ifndef __REVISION_NR_H__
#define __REVISION_NR_H__ #define __REVISION_NR_H__
#define REVISION_NR "11142" #define REVISION_NR "11143"
#endif // __REVISION_NR_H__ #endif // __REVISION_NR_H__