Been trying to make a custom trigger and untrigger for when my pet's attack-ability is not on autocast. It's been working well, but a problem arises when I try and add a second spellname that it can also check for in an 'either or'-scenario, because of how petattacks are name things like "Claw" or "Bite", so I wouldn't be able to use the same aura for pets with 2 differently named attacks.
This would be my trigger:
Code:
function()
local autocastable_claw, autostate_claw = GetSpellAutocast("Claw")
local autocastable_bite, autostate_bite = GetSpellAutocast("Bite")
if (not autocastable_claw) or (not autocastable_bite) then
return true
end
end
And the untrigger:
Code:
function()
local autocastable_claw, autostate_claw = GetSpellAutocast("Claw")
local autocastable_bite, autostate_bite = GetSpellAutocast("Bite")
if autocastable_claw or autocastable_bite then
return true
end
end
-- but it isn't working. The trigger seems to work but when I click the icon again to put it on autocast it seems that the untrigger doesn't fire.
Hope someone can help me crack the code.
Thanks in advance