Nevcairiel / Quartz

Quartz is a modular approach to a casting bar addon for World of Warcraft
https://www.wowace.com/projects/quartz
24 stars 21 forks source link

Target cast 'notInterruptible' not working on Cataclysm Classic #84

Open zetxy opened 4 months ago

zetxy commented 4 months ago

Quartz Version: 3.7.9 Game Version: Cataclysm Classic

Right now, the info whether target cast is 'interruptible' is not displayed correctly. At this point, every spell is displayed as 'interruptible' - shield icon is missing. This is most likely caused by 'WoWCata' not being registered in 'CastBarTemplate.lua'.

This can be currently patched:

local WoWRetail = (WOW_PROJECT_ID == WOW_PROJECT_MAINLINE)
local WoWWrath = (WOW_PROJECT_ID == WOW_PROJECT_WRATH_CLASSIC)
-- Add WoWCata 
local WoWCata = (WOW_PROJECT_ID == WOW_PROJECT_CATACLYSM_CLASSIC)
local WoWClassic = (WOW_PROJECT_ID == WOW_PROJECT_CLASSIC)

-- ... inside function CastBarTemplate:UNIT_SPELLCAST_START(event, unit, guid, spellID)

-- Add also check for WoWCata
-- this property doesn't exist in BC, and aliases with the spellID
if not WoWRetail and not WoWWrath and not WoWCata then
    notInterruptible = false
end