Spell facing follow-up: Fix an issue with creatures' channeled spells not cancelling properly in certain conditions

This commit is contained in:
treeston
2016-01-18 02:10:17 +01:00
parent 7f5805f308
commit 17f924a031

View File

@@ -2739,7 +2739,7 @@ bool Creature::FocusTarget(Spell const* focusSpell, WorldObject const* target)
}
}
if (shouldDelay)
shouldDelay = (!focusSpell->IsTriggered() && !focusSpell->GetCastTime());
shouldDelay = !(focusSpell->IsTriggered() || focusSpell->GetCastTime() || focusSpell->GetSpellInfo()->IsChanneled());
}
}