mirror of
https://github.com/brues-code/SuperCleveRoidMacros.git
synced 2026-09-16 03:38:00 +00:00
Add [mhenchant]/[ohenchant] weapon temp-enchant conditionals
Uses ClassicAPI's modern C_Item.GetWeaponEnchantInfo (12-tuple with enchant IDs) plus C_Item.GetEnchantInfo (ID -> localized name) to match WHICH temporary weapon enchant is applied -- by SpellItemEnchantment ID or name -- not just that one exists. Locale-proof and exact, unlike [mhimbue:Name]'s green-text tooltip scan. ClassicAPI.lua gains GetWeaponEnchant(slot) (centralizes the tuple indexing, vanilla-global fallback) and GetEnchantName(id). ValidateWeaponImbue now reads through GetWeaponEnchant. New keywords mhenchant/nomhenchant/ ohenchant/noohenchant support bare (any enchant), single ID/name, and OR-lists ([mhenchant:2823/Deadly_Poison]); registered in BOOLEAN_CONDITIONALS for the bare form and auto-added to VALID_CONDITIONALS via Keywords.
This commit is contained in:
Reference in New Issue
Block a user