fix(Core/Spells): Next melee swing spells are supposed to be queued up even when out of range. (#7180)

- Closes #6588
This commit is contained in:
UltraNix
2021-08-06 03:07:36 +02:00
committed by GitHub
parent cf5aeaea06
commit 2d56a94016
+4
View File
@@ -3244,11 +3244,15 @@ SpellCastResult Spell::prepare(SpellCastTargets const* targets, AuraEffect const
triggeredByAura->GetBase()->SetDuration(0); triggeredByAura->GetBase()->SetDuration(0);
} }
// Allows to cast melee attack spell if result is SPELL_FAILED_OUT_OF_RANGE
if (!IsNextMeleeSwingSpell() || result != SPELL_FAILED_OUT_OF_RANGE)
{
SendCastResult(result); SendCastResult(result);
finish(false); finish(false);
return result; return result;
} }
}
// Prepare data for triggers // Prepare data for triggers
prepareDataForTriggerSystem(triggeredByAura); prepareDataForTriggerSystem(triggeredByAura);