I wanted to inquire if you'd be interested in maybe adding an additional functionality to have the Libram automatically switch to a libram when Holy Shield is cast? I know the check is already there but adding the function to actually put the right libram in place would be pretty awesome.
Equipping an item will now cancel any spell cast currently in progress.
End of this addon?
Yes and no.
Yes, it does no longer work as it did before because the cast causing a libram switch is interrupted. You can still use it but that's not worth it.
No, I changed it so I can still use it to optimize my healing. It is possible to swap librams and then cast without timeloss! So if I call Librameister knowing what I'm going to cast before I do so, it still works.
1. remove event registration to no longer swap on spell cast
2. replace the method onSpellcast() with changeLibram(), and getLibram() with getLibram0()
3. changeLibram() does not swap when a spell is currently being cast, the spell parameter value can be "hl" or "fol"
4. I call changeLibram() in a macro or via Clique before I cast.
function Librameister:changeLibram(unit, spell, _,targ)
if not (UnitCastingInfo(unit)) then --
local sfx = GetCVar("Sound_EnableSFX") -- Remember sound settings
SetCVar("Sound_EnableSFX", "0") -- Disable sound
SetCVar("Sound_EnableSFX", sfx) -- Set settings back to their old value
function Librameister:getLibram0(targ, spell)
if (spell == "hl" or spell == "fol") then -- only bother if fol or hl is being cast
I use to have have issues of that nature as a mage trying to make an evocation macro for in combat and out of combat. Fortunately for me channeled spells can still hide weapon swaps in their GCD. With 2.4.3 for shamans and paladins the only thing ya'll can really do now is change totem/libram, wait for the GCD (1.5 seconds unhasted going down to 1 second around 510-515 spell haste ~33%), then cast your spell. Since a weapon swap does proc a GCD during combat it also for interrupts (not sure if thats the right choice of words) the macro. You will have to hit the button again once you have swapped totems/librams to cast your heal.