the only thing im not sure about is if it goes to filtered_action or not
but here is a quick example
Code:Error_Spell = "" function filtered_action(spell)--if not filtered_action try pretarget or precast if spell.en == "Erase" and (player.sub_job ~= "WHM" or not buffactive["Addendum: White"]) then cancel_spell() Error_Spell = spell.en send_command('wait 1.0;input /ja "Addendum: White" <me>') end end function aftercast(spell) if spell.en == "" and Error_Spell ~= "" then send_command('wait 1.0;input /ma "'..Error_Spell..'" <me>') Error_Spell = "" end end
XI Wiki


