fix(Core/Spells): Forbid using charge if already charging to someone. (#7172)

Fixed #6453

Co-authored-by: Stefano Borzì <stefanoborzi32@gmail.com>
This commit is contained in:
UltraNix
2021-08-05 21:24:57 +02:00
committed by GitHub
parent f755a277d8
commit 7e6727c12a

View File

@@ -5647,6 +5647,11 @@ SpellCastResult Spell::CheckCast(bool strict)
}
case SPELL_EFFECT_CHARGE:
{
if (m_caster->HasUnitState(UNIT_STATE_CHARGING))
{
return SPELL_FAILED_DONT_REPORT;
}
if (m_spellInfo->SpellFamilyName == SPELLFAMILY_WARRIOR)
{
// Warbringer - can't be handled in proc system - should be done before checkcast root check and charge effect process