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);
|
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);
|
finish(false);
|
||||||
return result;
|
return result;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Prepare data for triggers
|
// Prepare data for triggers
|
||||||
|
|||||||
Reference in New Issue
Block a user