Core/Spells: fix spells with SPELL_AURA_OVERRIDE_ACTIONBAR_SPELLS not being allowed to be cast

This commit is contained in:
luis
2026-11-05 20:17:07 -03:00
parent 2d2bd96014
commit 2c6bccb220
@@ -33891,6 +33891,11 @@ void Player::ExecutePendingSpellCastRequest()
if (go->GetSpellForLock(plrCaster) == spellInfo)
allow = true;
// allow casting of spells granted by action bar override auras (e.g. Void Elf Spatial Rift reactivation)
if (castingUnit->HasAuraTypeWithValue(SPELL_AURA_OVERRIDE_ACTIONBAR_SPELLS, spellInfo->Id)
|| castingUnit->HasAuraTypeWithValue(SPELL_AURA_OVERRIDE_ACTIONBAR_SPELLS_TRIGGERED, spellInfo->Id))
allow = true;
// allow casting of spells triggered by clientside periodic trigger auras
if (castingUnit->HasAuraTypeWithTriggerSpell(SPELL_AURA_PERIODIC_TRIGGER_SPELL_FROM_CLIENT, spellInfo->Id))
{