aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorariel- <ariel-@users.noreply.github.com>2016-11-13 23:20:45 -0300
committerariel- <ariel-@users.noreply.github.com>2016-11-14 02:12:35 -0300
commit5daabe303e9132c3b398eca44b9d0f4e9fb694ec (patch)
tree30882297926ec6c1927855b6a14349f33c91f199 /src
parent5aa0228df9c8659b44c688d5e8e7e967c463a620 (diff)
Core/Spell: do not fail triggered Charge effects in case a root is present.
Fixes Master's call when pet is rooted
Diffstat (limited to 'src')
-rw-r--r--src/server/game/Spells/Spell.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/game/Spells/Spell.cpp b/src/server/game/Spells/Spell.cpp
index ca1a96437b6..a35f36f5e81 100644
--- a/src/server/game/Spells/Spell.cpp
+++ b/src/server/game/Spells/Spell.cpp
@@ -5273,7 +5273,7 @@ SpellCastResult Spell::CheckCast(bool strict, uint32* param1 /*= nullptr*/, uint
m_caster->RemoveMovementImpairingAuras();
}
- if (m_caster->HasUnitState(UNIT_STATE_ROOT))
+ if (!(_triggeredCastFlags & TRIGGERED_IGNORE_CASTER_AURAS) && m_caster->HasUnitState(UNIT_STATE_ROOT))
return SPELL_FAILED_ROOTED;
if (GetSpellInfo()->NeedsExplicitUnitTarget())