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:
parent
f755a277d8
commit
7e6727c12a
1 changed files with 5 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue