The ai shouldn't try to play discard attack on players with empty hands no matter how "stupid" it's supposed to be, seen this behaviour repeatedly (with several of the active discard cards) in the first 2 maps of Secret of the Elder Mind. Not sure how the ai is coded, but setting a "don't play" clause when hand size is 0 should probably be pretty simple?