it should come as a surprise to few people that WotC's MtG Arena app uses a LISP dialect called CLIPS, which is ideal for that kind of thing
https://magic.wizards.com/en/news/mtg-arena/on-whiteboards-n...