mirror of
https://github.com/mangosfour/server.git
synced 2025-12-19 04:37:06 +00:00
[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:
parent
4483cbc06d
commit
01e4f25888
2 changed files with 4 additions and 2 deletions
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -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__
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue