The Cancel addon was written eons ago when the libraries were mostly shitty and lacking in many ways. These days the entire addon can be rewritten as follows:
Code:
_addon.command = 'cancel'
require('luau')
res = require('resources')
windower.register_event('addon command', function(...)
arg = (...):number() or L{...}:concat()
local player = windower.ffxi.get_player()
if player then
for buff_id in L(player.buffs):it() do
local buff = res.buffs[buff_id]
if buff and (arg == buff.id or windower.wc_match(buff.name, arg) or windower.wc_match(buff.name:slug(), arg)) then
windower.ffxi.cancel_buff(buff_id)
return
end
end
end
end)
If you copy that into your Windower/addons/cancel/cancel.lua file and reload it, you should be able to use it like that.
Edit:
This way it also supports wildcards:
Code:
//cancel copy image*
That way you can cancel all forms of copy image with the same command. Or, if you just want to cancel 1 and 2 shadows:
Code:
//cancel copy image|copy image (2)
And so on for other things.