mirror of
https://github.com/mangosfour/server.git
synced 2025-12-21 01:37:05 +00:00
[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:
parent
709dd6fed8
commit
f6affaf406
2 changed files with 2 additions and 4 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#ifndef __REVISION_NR_H__
|
||||
#define __REVISION_NR_H__
|
||||
#define REVISION_NR "11153"
|
||||
#define REVISION_NR "11154"
|
||||
#endif // __REVISION_NR_H__
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue