Repository navigation
fix(Core/Spells): Allow low-level targets for spells ignoring aura scaling - #28617
Conversation
…aling Aura scaling dropped every target whose level + 10 was below the spell's SpellLevel, even for spells with SPELL_ATTR2_ALLOW_LOW_LEVEL_BUFF. Beast Lore (1462, SpellLevel 24) therefore failed on anything below level 14. Skip filling the aura scale mask for spells with that attribute. GetAuraRankForLevel already ignores rank selection for them, so the only change is that low-level targets are no longer removed. Closes azerothcore#5788 Ported from cMaNGOS mangos-wotlk: cmangos/mangos-wotlk@c96bb69
There was a problem hiding this comment.
Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.
An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.
Self-review (b782738)Scope. One condition added to the aura scaling gate in Reach. Checked every 3.3.5 Spell.dbc entry with Upstream. cMaNGOS skips its low-level check for this attribute (killerwife, cmangos/mangos-wotlk@c96bb69), credited with Checks. Testing. In-game results are up to the author. Beyond the issue's Beast Lore repro, please check a Soulstone placed by a level 70+ warlock on a low-level player, and that normal downranked buffs (max-rank Power Word: Fortitude on a low-level player) still downrank. No findings. |
|
No actionable comments were generated in the recent review. Walkthrough
Severity of issue fixed: Low Merge Risk:
|
Casts Beast Lore (1462) on a level 1 beast and expects the aura to land. An unfixed core fails the cast with SPELL_FAILED_LOWLEVEL.
Self-review: fix-5788-beast-lore-low-level → masterOutcome 4 findings, all fixed. The final round was clean. Reviewed By Claude Code, Claude Opus 5.5, self-review v0.10, 2026-11-29 Tested Review details (3 rounds)Intent Let player spells flagged Project rules Diff Metadata Round 1 (working tree on
|
…re-low-level # Conflicts: # e2e/README.md
Changes Proposed:
This PR proposes changes to:
Aura scaling in
Spell::prepareremoves any target whose level + 10 is below the spell's SpellLevel and fails the cast with "Target is too low level". It did this even for spells flaggedSPELL_ATTR2_ALLOW_LOW_LEVEL_BUFF, which the client treats as "ignore aura scaling". Beast Lore (1462) has SpellLevel 24 and that attribute, so it failed on every target below level 14.The fix skips filling the aura scale mask for spells with that attribute.
SpellInfo::GetAuraRankForLevelalready returns the spell unchanged for them, so nothing else about the applied aura changes. Only the low-level target filter stops dropping targets.Other player spells with the attribute that went through this filter, all of which can now target low-level units:
Health Funnel and Mind Vision carry the attribute too but are channeled, so aura scaling never applied to them. The remaining spells with the attribute target the caster or are negative auras, so they are unaffected.
Mend Pet, also mentioned in the issue, does not carry the attribute and is left as is. Its rank 1 needs a pet of level 2 or higher, which every hunter pet already is in play: Tame Beast is learned at level 10 and a tamed pet starts at no less than the hunter's level minus 5.
The PR also adds
TestAC_5788_BeastLoreOnLowLevelBeast(e2e/suites/spells/aura): a level 80 hunter casts Beast Lore on a level 1 Diseased Young Wolf and the aura must land. On the current master the cast fails with SPELL_FAILED_LOWLEVEL.AI-assisted Pull Requests
Issues Addressed:
SOURCE:
The changes have been validated through:
cMaNGOS skips its low-level target check for spells with this attribute: cmangos/mangos-wotlk@c96bb69
Tests Performed:
This PR has been:
How to Test the Changes:
Known Issues and TODO List:
How to Test AzerothCore PRs
When a PR is ready to be tested, it will be marked as [WAITING TO BE TESTED].
You can help by testing PRs and writing your feedback here on the PR's page on GitHub. Follow the instructions here:
http://www.azerothcore.org/wiki/How-to-test-a-PR
REMEMBER: when testing a PR that changes something generic (i.e. a part of code that handles more than one specific thing), the tester should not only check that the PR does its job (e.g. fixing spell XXX) but especially check that the PR does not cause any regression (i.e. introducing new bugs).
For example: if a PR fixes spell X by changing a part of code that handles spells X, Y, and Z, we should not only test X, but we should test Y and Z as well.