Core/Spells: Chain spells shouldn't hit critters

This commit is contained in:
Shocker
2011-10-07 23:33:08 +03:00
parent a886f1cfbd
commit 9b218315b8
+1
View File
@@ -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;