mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-17 02:50:29 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user