ItemRack icon indicating copy to clipboard operation
ItemRack copied to clipboard

AfterCast not working on Classic Era

Open svenbledt opened this issue 1 year ago • 2 comments

First of all, arg2 is spell GUID wich is actualy not a option i think that ppl enter the spellguid,

arg3 wich should then be spellid is fine for me but the event does just nothing and i think it doesnt work at all on Classic Era.

Pls fix this its needed for warriors and would be highly appreciated.

svenbledt avatar Nov 28 '24 23:11 svenbledt

Yeah I had this issue as well, you can do a workaround for it by defining the args at the top as they aren't passed in the loadstring

local arg1,arg2,arg3 = ...

this will make arg3 the spellID

here's an example that I use to equip my stealth detction set when casting track hidden

local arg1,arg2,arg3 = ...
local spell = 19885
local set = "Stealth Detect"
if arg1=="player" and arg3==spell then
  EquipSet(set)
end

DedodedoMinion avatar Jan 12 '25 11:01 DedodedoMinion

For diamond flask you can use Buff Gained instead

Alessandro-Barbieri avatar Jun 13 '25 02:06 Alessandro-Barbieri