implement buyback effect as MagicWhenSpellIsCastTrigger
replace groovy code with card script
replace groovy code with card script