I wrote a Quaking WA with some help of you guys. https://wago.io/bkzdHpcF4 It works with some custom Trigger. I want to do a similar WA for Enemy Cast that would interrupt my cast. But when I just simply change the trigger from Aura (Buff/Debuff) -> Player -> Debuff -> Quaking ID to Player / Unit Info -> Spellcasting -> Nameplate -> Spell ID I want to track. It does not work anymore.
Custom Trigger Code:
local v1 = WeakAuras.GetTriggerStateForTrigger(aura_env.id, 1)[""]
local v2 = WeakAuras.GetTriggerStateForTrigger(aura_env.id, 2)[""]
if v1 and v2 then
local cast = v1.expirationTime - GetTime()
local quake = v2.expirationTime - GetTime()
if cast > quake then
return true
else
return false
end
end
end```