We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e4a44bc commit 9156f66Copy full SHA for 9156f66
1 file changed
src/server/game/Spells/Spell.cpp
@@ -4157,7 +4157,8 @@ void Spell::update(uint32 difftime)
4157
// if charmed by creature, trust the AI not to cheat and allow the cast to proceed
4158
// @todo this is a hack, "creature" movesplines don't differentiate turning/moving right now
4159
// however, checking what type of movement the spline is for every single spline would be really expensive
4160
- if (!m_caster->ToUnit()->IsControlledByPlayer())
+ Unit* unitCaster = m_caster->ToUnit();
4161
+ if (!unitCaster->GetCharmerGUID().IsCreature() && (!unitCaster->IsControlledByPlayer() || unitCaster->GetTypeId() == TYPEID_PLAYER))
4162
cancel();
4163
}
4164
0 commit comments