aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorShocker <shocker@freakz.ro>2011-10-07 23:33:08 +0300
committerShocker <shocker@freakz.ro>2011-10-07 23:33:08 +0300
commit9b218315b870b1ba4137e8b68035b1698606cf01 (patch)
tree937698e9c828ca7157ecdd3e4a1dabf435b5a472 /src
parenta886f1cfbdfc51ec419db8cc16166de365f15036 (diff)
Core/Spells: Chain spells shouldn't hit critters
Diffstat (limited to 'src')
-rwxr-xr-xsrc/server/game/Spells/Spell.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/server/game/Spells/Spell.cpp b/src/server/game/Spells/Spell.cpp
index dffdfad17e5..fd782519410 100755
--- a/src/server/game/Spells/Spell.cpp
+++ b/src/server/game/Spells/Spell.cpp
@@ -1825,6 +1825,7 @@ void Spell::SearchChainTarget(std::list<Unit*> &TagUnitMap, float max_range, uin
&& !m_caster->isInFrontInMap(*next, max_range))
|| !m_caster->canSeeOrDetect(*next)
|| !cur->IsWithinLOSInMap(*next)
+ || (*next)->GetCreatureType() == CREATURE_TYPE_CRITTER
|| ((GetSpellInfo()->AttributesEx6 & SPELL_ATTR6_CANT_TARGET_CROWD_CONTROLLED) && !(*next)->CanFreeMove()))
{
++next;