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:
parent
cf5aeaea06
commit
2d56a94016
1 changed files with 7 additions and 3 deletions
|
|
@ -3244,10 +3244,14 @@ SpellCastResult Spell::prepare(SpellCastTargets const* targets, AuraEffect const
|
|||
triggeredByAura->GetBase()->SetDuration(0);
|
||||
}
|
||||
|
||||
SendCastResult(result);
|
||||
// Allows to cast melee attack spell if result is SPELL_FAILED_OUT_OF_RANGE
|
||||
if (!IsNextMeleeSwingSpell() || result != SPELL_FAILED_OUT_OF_RANGE)
|
||||
{
|
||||
SendCastResult(result);
|
||||
|
||||
finish(false);
|
||||
return result;
|
||||
finish(false);
|
||||
return result;
|
||||
}
|
||||
}
|
||||
|
||||
// Prepare data for triggers
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue