mirror of
https://github.com/brues-code/SuperCleveRoidMacros.git
synced 2026-09-16 03:38:00 +00:00
Localize Feed Pet via spell ID and fix IsReactive param
- Resolve Feed Pet from spell ID 6991 (C_Spell.GetSpellName) so /feedpet works on non-enUS clients without a Localized.Spells entry - Fix CleveRoids.IsReactive referencing undefined global spellName instead of its name parameter
This commit is contained in:
+1
-1
@@ -4895,7 +4895,7 @@ function CleveRoids.ValidatePlayerAuraCount(bigger, amount)
|
||||
end
|
||||
|
||||
function CleveRoids.IsReactive(name)
|
||||
return CleveRoids.reactiveSpells[spellName] ~= nil
|
||||
return CleveRoids.reactiveSpells[name] ~= nil
|
||||
end
|
||||
|
||||
-- NOTE: CleveRoids.GetActionButtonInfo is defined in Extensions/Tooltip/Generic.lua
|
||||
|
||||
@@ -7114,7 +7114,7 @@ function CleveRoids.DoFeedPet(msg)
|
||||
return false
|
||||
end
|
||||
|
||||
local feedPet = (CleveRoids.Localized.Spells and CleveRoids.Localized.Spells["Feed Pet"]) or "Feed Pet"
|
||||
local feedPet = C_Spell.GetSpellName(6991) or "Feed Pet"
|
||||
CastSpellByName(feedPet)
|
||||
|
||||
-- Only apply the food if Feed Pet actually entered item-targeting mode.
|
||||
|
||||
Reference in New Issue
Block a user