fix use with nampower and boss creature type

This commit is contained in:
Jrc13245
2025-12-20 13:23:13 -05:00
parent c3721036bd
commit 58431b1967
2 changed files with 15 additions and 10 deletions
+7 -2
View File
@@ -1393,10 +1393,15 @@ function CleveRoids.ValidateCreatureType(creatureType, target)
if not targetType then return false end -- ooze or silithid etc
local ct = string.lower(creatureType)
local cl = UnitClassification(target)
if (ct == "boss" and "worldboss" or ct) == cl then
-- Check classification: "boss" matches both "boss" and "worldboss"
if ct == "boss" then
if cl == "boss" or cl == "worldboss" then
return true
end
elseif ct == cl then
return true
end
if string.lower(creatureType) == "boss" then creatureType = "worldboss" end
if ct == "boss" then creatureType = "worldboss" end
local englishType = CleveRoids.Localized.CreatureTypes[targetType]
return ct == string.lower(targetType) or creatureType == englishType
end