Illusions shouldn’t simply rearrange the board at all – that’s the exact opposite of what it’s name implies! It should make it hard or impossible for the opponent to make their intended matches. I think this could make Loki a more interesting and thematically appropriate character. I have two ideas for ways to do this:
Version One:
Loki’s illusions completely obscure the board, causing every tile to appear as a different type to the opponent for the next (number) rounds.
There are a lot of tweaks that could be made here to create the level progression. Duration is the obvious one. Do all tiles of a type show as the same replacement? Do special tiles disguise their function?
Two main downsides here: this is probably pretty complicated to code and could be too frustrating if the player can’t tell where matches can be made at all and has to guess, but the match hinting could still work normally for the latter case, revealing one possible spot.
Also, it might be hard to tell what effect this is having on the AI. It doesn’t always make the best choices anyway, so how will you tell the difference?
Play style notes: a memory of the board’s arrangement when the spell is fired will help the human player, but not for long.
Version Two:
Loki’s illusions befuddle the player, causing the the opponent’s moves to misfire, making an unintended match.
This one is probably easier to code: whatever match the affected player or AI selects, it will be automatically replaced by a randomly selected other valid move on the board. The main things to change with level progression are duration and/or AP cost.
Play style notes: one key thing for the human player will to be to select a weak move and hope its replacement is better. The less moves available, the more successful this strategy will be. if there’s only one move to make, the illusions would have no effect.
Version Two, Alternate:
Like the previous Version Two, but a passive ability with a chance of affecting the opponent at any time based on number of levels and number of purple tiles on the board. Example:
1: if there are at least 8 purple tiles on the board, 20% chance of replacing the opponent’s move
2: Increase chance to 35%
3: Decrease required purple tiles to six.
4: Increase chance to 50%
5: No purple tiles required.