mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-15 23:20:36 +01:00
Core/Auras: Implemented SPELL_AURA_KEYBOUND_OVERRIDE (#28809)
Co-authored-by: MaxtorCoder <warsongkiller.s8@gmail.com> Co-authored-by: Shauren <shauren.trinity@gmail.com>
This commit is contained in:
@@ -683,3 +683,16 @@ void WorldSession::HandleRequestCategoryCooldowns(WorldPackets::Spells::RequestC
|
||||
{
|
||||
_player->SendSpellCategoryCooldowns();
|
||||
}
|
||||
|
||||
void WorldSession::HandleKeyboundOverride(WorldPackets::Spells::KeyboundOverride& keyboundOverride)
|
||||
{
|
||||
Player* player = GetPlayer();
|
||||
if (!player->HasAuraTypeWithMiscvalue(SPELL_AURA_KEYBOUND_OVERRIDE, keyboundOverride.OverrideID))
|
||||
return;
|
||||
|
||||
SpellKeyboundOverrideEntry const* spellKeyboundOverride = sSpellKeyboundOverrideStore.LookupEntry(keyboundOverride.OverrideID);
|
||||
if (!spellKeyboundOverride)
|
||||
return;
|
||||
|
||||
player->CastSpell(player, spellKeyboundOverride->Data);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user