Not directly. You can use a custom PostCastStart/PostChannelStart function to identify if the spell is interruptible and change the display of the castbar based on that. You should also track the UNIT_SPELLCAST_INTERRUPTABLE/UNIT_SPELLCAST_NOT_INTERRUPTABLE events in case the interrupt-ability of the spell changes during cast (e.g. during the Twin Valkyrs).
To add to this, here's how I'm doing it (in my non-updated version):
Code:
local postCastStart = function(self, event, unit, name, rank, text, castid, interrupt)
if( interrupt ) then
self.Castbar.bg:Hide()
self.Castbar.Shield:Show()
else
self.Castbar.bg:Show()
self.Castbar.Shield:Hide()
end
end
local spellInterruptable = function(self, event, unitID)
if( self.unit == unitID ) then
if( event == 'UNIT_SPELLCAST_NOT_INTERRUPTABLE' ) then
self.Castbar.bg:Hide()
self.Castbar.Shield:Show()
else
self.Castbar.bg:Show()
self.Castbar.Shield:Hide()
end
end
end
and in the layout function:
Code:
self:RegisterEvent('UNIT_SPELLCAST_NOT_INTERRUPTABLE', spellInterruptable)
self:RegisterEvent('UNIT_SPELLCAST_INTERRUPTABLE', spellInterruptable)