I ran into a situation with ready action that I feel goes against the spirit of the game and maybe the rules but I'm unsure.
I'm running a homebrew game. I made this Bladesinger NPC that I gave a magic item, so that when they took the Dodge action, they got more reactions. He challenged my players' character to a fight and if they could put up a good fight for X amount of rounds, he would give them information.
Once they figured out he was taking the Dodge action every turn and hitting them with reactions, they came up with the following Ready action: "When he stops benefitting from Dodge and before he uses his action, I want to swing my sword/cast a spell/shoot an arrow".
It was late in the session, they had almost reached the point where the fight was going to end anyway, and I couldn't really see where they had technically broken a rule, so I allowed it for just that fight. I'm not going to allow it in future fights and this guy and his magic item might never come back, but was my players' ready action legal?