fix(buffs): tinkering expertise spells are Creature Enchantment
SkillForBuff matched the Life Magic keyword "Armor" first, so Armor Tinkering Expertise and Prodigal Armor Expertise took their tier from Life Magic and a character without Life Magic never cast them. Names with "Tinkering" or "Armor Expertise" are Creature Enchantment, checked before the Life keywords. The host test is no longer a known failure.
This commit is contained in:
parent
0daf0a44a3
commit
bb3331e2d2
3 changed files with 33 additions and 4 deletions
21
Changelog/2026-10-08-fix-buff-armor-tinkering-school.md
Normal file
21
Changelog/2026-10-08-fix-buff-armor-tinkering-school.md
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
# Buffs - tinkering expertise spells are Creature Enchantment - 2026-10-08
|
||||
|
||||
## Fixed
|
||||
|
||||
- **Armor Tinkering Expertise is cast with Creature Enchantment.** `BuffManager.SkillForBuff`
|
||||
picks the magic school from the spell name and matched the Life Magic keyword "Armor" first,
|
||||
so Armor Tinkering Expertise (and Prodigal Armor Expertise) took its tier from Life Magic, and
|
||||
a character without Life Magic never cast it. Names with "Tinkering" or "Armor Expertise" are
|
||||
now Creature Enchantment, checked before the Life Magic keywords. Armor, Incantation of Armor
|
||||
and the protections stay Life Magic.
|
||||
|
||||
## Files
|
||||
|
||||
- `Plugins/RynthCore.Plugin.RynthAi/Combat/BuffManager.cs`: `SkillForBuff` tinkering rule.
|
||||
- `Tools/RynthCore.RynthAiHostTests/Tests/BuffTests.cs`: the Armor Tinkering test is a normal
|
||||
test now (was a known failure), and also checks the other tinkering expertise spells and that
|
||||
the Life Magic armor buffs are unchanged.
|
||||
|
||||
## Checks
|
||||
|
||||
- `buff` host tests: 35 passed, 0 known failures.
|
||||
|
|
@ -3755,6 +3755,11 @@ public class BuffManager : IDisposable
|
|||
name.Contains("Bane"))
|
||||
return AcSkillType.ItemEnchantment;
|
||||
|
||||
// Tinkering skill buffs (Armor Tinkering Expertise, Prodigal Armor Expertise) are Creature
|
||||
// Enchantment; checked before the Life Magic "Armor" match below.
|
||||
if (name.Contains("Tinkering") || name.Contains("Armor Expertise"))
|
||||
return AcSkillType.CreatureEnchantment;
|
||||
|
||||
if (name.Contains("Protection") || name.Contains("Armor") ||
|
||||
name.Contains("Regeneration") || name.Contains("Rejuvenation") ||
|
||||
name.Contains("Renewal") || name == "Harlune's Blessing" ||
|
||||
|
|
|
|||
|
|
@ -62,9 +62,7 @@ internal static class BuffTests
|
|||
r.Add("buff choice: a mastery whose name has several spell ids", MultiIdMastery); // was a known failure; fixed by 0aedcee
|
||||
r.Add("buff timers: tier-8 weapon auras last 90 minutes", TierEightAuras); // was a known failure; fixed by 9a317a8
|
||||
r.Add("buff chat: another player's speech can't record a buff timer", SpeechIsNotACast); // was a known failure; fixed by 0e384d2
|
||||
r.KnownFailure("buff school: Armor Tinkering Expertise is a Creature Enchantment spell",
|
||||
"SkillForBuff matches \"Armor\" first and files it under Life Magic: its tier comes from Life Magic, and a character without Life Magic never casts it (not fixed on any branch)",
|
||||
ArmorTinkeringSchool);
|
||||
r.Add("buff school: Armor Tinkering Expertise is a Creature Enchantment spell", ArmorTinkeringSchool); // was a known failure
|
||||
}
|
||||
|
||||
// ── Rig ───────────────────────────────────────────────────────────────────
|
||||
|
|
@ -401,7 +399,12 @@ internal static class BuffTests
|
|||
|
||||
private static void ArmorTinkeringSchool()
|
||||
{
|
||||
Check.Eq(BuffManager.SkillForBuff("Armor Tinkering Expertise"), AcSkillType.CreatureEnchantment, "Armor Tinkering Expertise");
|
||||
foreach (string n in new[] { "Armor Tinkering Expertise", "Item Tinkering Expertise", "Weapon Tinkering Expertise",
|
||||
"Magic Item Tinkering Expertise", "Prodigal Armor Expertise", "Incantation of Armor Tinkering Expertise" })
|
||||
Check.Eq(BuffManager.SkillForBuff(n), AcSkillType.CreatureEnchantment, n);
|
||||
// The "Armor" keyword still files real Life Magic armor buffs under Life.
|
||||
foreach (string n in new[] { "Armor", "Incantation of Armor", "Prodigal Armor", "Blade Protection", "Regeneration" })
|
||||
Check.Eq(BuffManager.SkillForBuff(n), AcSkillType.LifeMagic, n);
|
||||
}
|
||||
|
||||
private static void ItemEnchantments()
|
||||
|
|
|
|||
Loading…
Reference in a new issue