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