mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-02-06 08:59:11 +01:00
Core/Spells: fixed an logic mistake in Runic Empowerment's spell script that was preventing the first blood or death rune from ever getting activated
This commit is contained in:
@@ -1168,8 +1168,10 @@ class spell_dk_runic_empowerment : public AuraScript
|
||||
}
|
||||
|
||||
if (!fullyDepletedRuneIndexes.empty())
|
||||
if (uint8 runeIndex = Trinity::Containers::SelectRandomContainerElement(fullyDepletedRuneIndexes))
|
||||
ActivateRune(player, runeIndex);
|
||||
{
|
||||
uint8 runeIndex = Trinity::Containers::SelectRandomContainerElement(fullyDepletedRuneIndexes);
|
||||
ActivateRune(player, runeIndex);
|
||||
}
|
||||
}
|
||||
|
||||
void Register() override
|
||||
|
||||
Reference in New Issue
Block a user