From 90413ecffbe25754802be31438bd112e70234159 Mon Sep 17 00:00:00 2001 From: Karrz1 <127596890+Karrz1@users.noreply.github.com> Date: Mon, 16 Nov 2026 16:40:44 +0000 Subject: [PATCH] Spells: Feral Charge turns into Feral Charge (Cat) in Cat Form Feral Charge 1238122 swaps on the action bar through two hidden form spells, 414925 (Cat Form: override to Feral Charge (Cat) 414924) and 1238124 (Bear, Dire Bear Form: override to Feral Charge (Bear) 16979). Nothing in the client data teaches them, so no druid had them: in Cat Form the button stayed on the bear version and could not be used. - World SQL: learning Feral Charge teaches both (spell_learn_spell, not shown in the spellbook). Existing druids get them at their next login; the shapeshift casts the one that fits the form (HandleShapeshiftBoosts). - Player::AddSpell: such a hidden form spell learned while already in one of its forms goes on at once instead of waiting for the next shapeshift. --- ...11_16_82_world_forever_feral_charge_form_overrides.sql | 8 ++++++++ src/server/game/Entities/Player/Player.cpp | 5 +++++ 2 files changed, 13 insertions(+) create mode 100644 sql/custom/world/2026_11_16_82_world_forever_feral_charge_form_overrides.sql diff --git a/sql/custom/world/2026_11_16_82_world_forever_feral_charge_form_overrides.sql b/sql/custom/world/2026_11_16_82_world_forever_feral_charge_form_overrides.sql new file mode 100644 index 0000000000..d9f65f7ff8 --- /dev/null +++ b/sql/custom/world/2026_11_16_82_world_forever_feral_charge_form_overrides.sql @@ -0,0 +1,8 @@ +-- Druid: Feral Charge 1238122 (talent) turns into Feral Charge (Cat) 414924 in Cat Form and Feral Charge (Bear) 16979 in Bear and +-- Dire Bear Form through two hidden form spells: 414925 (Cat Form only) and 1238124 (Bear, Dire Bear Form), both "override action bar +-- spell 1238122". The client data (SpellLearnSpell, SkillLineAbility) teaches neither, so nobody had them and the button stayed on the +-- bear version in Cat Form ("Requires Bear Form"). Learning Feral Charge now teaches both; the shapeshift puts the one for the form on. +DELETE FROM `spell_learn_spell` WHERE `entry` = 1238122 AND `SpellID` IN (414925, 1238124); +INSERT INTO `spell_learn_spell` (`entry`, `SpellID`, `Active`) VALUES +(1238122, 414925, 0), +(1238122, 1238124, 0); diff --git a/src/server/game/Entities/Player/Player.cpp b/src/server/game/Entities/Player/Player.cpp index 80136ca4bb..ed07a7bd3f 100644 --- a/src/server/game/Entities/Player/Player.cpp +++ b/src/server/game/Entities/Player/Player.cpp @@ -3234,6 +3234,11 @@ bool Player::AddSpell(uint32 spellId, bool active, bool learning, bool dependent castSpell = true; else if (spellInfo->HasAttribute(SPELL_ATTR1_CAST_WHEN_LEARNED)) castSpell = true; + // A hidden form spell (AuraEffect::HandleShapeshiftBoosts casts it at every shapeshift into one of its forms) learned while already + // in such a form goes on now, as it would at the next shapeshift (Feral Charge 1238122 teaches the Cat Form override 414925) + else if (!loading && IsInWorld() && spellInfo->Stances && spellInfo->HasAttribute(SPELL_ATTR0_DO_NOT_DISPLAY_SPELLBOOK_AURA_ICON_COMBAT_LOG)) + if (ShapeshiftForm const form = GetShapeshiftForm(); form != FORM_NONE) + castSpell = (spellInfo->Stances & (UI64LIT(1) << (form - 1))) != 0; if (castSpell) {