I doubt it'd specifically designed as anti-mage. Serini had not way of knowing what type of people/monsters she had to defend against. Given it's based on a game with parties, a party is probably the most likely.

I don't think the trap is impossible for a mage like Xykon to detect. Casting detect magic would detect, and then he could dispel it. It just hasn't occurred to him to look yet.