Core/Spells: Chain spells shouldn't hit critters
This commit is contained in:
@@ -1825,6 +1825,7 @@ void Spell::SearchChainTarget(std::list<Unit*> &TagUnitMap, float max_range, uin
|
|||||||
&& !m_caster->isInFrontInMap(*next, max_range))
|
&& !m_caster->isInFrontInMap(*next, max_range))
|
||||||
|| !m_caster->canSeeOrDetect(*next)
|
|| !m_caster->canSeeOrDetect(*next)
|
||||||
|| !cur->IsWithinLOSInMap(*next)
|
|| !cur->IsWithinLOSInMap(*next)
|
||||||
|
|| (*next)->GetCreatureType() == CREATURE_TYPE_CRITTER
|
||||||
|| ((GetSpellInfo()->AttributesEx6 & SPELL_ATTR6_CANT_TARGET_CROWD_CONTROLLED) && !(*next)->CanFreeMove()))
|
|| ((GetSpellInfo()->AttributesEx6 & SPELL_ATTR6_CANT_TARGET_CROWD_CONTROLLED) && !(*next)->CanFreeMove()))
|
||||||
{
|
{
|
||||||
++next;
|
++next;
|
||||||
|
|||||||
Reference in New Issue
Block a user