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) {