Just like
gregers said but if you want just patch it I would add new variable if "emilyShooting" is null and use both. This might not be best clean code but not every player is familiar with using console.
If "emilyShooting" initialized that means she won, if not it means MC so add new variable "emilyShootingFix = "MC won" and just remember to use it both whenever needed.
edit: lol, just check if variable "emilyShooting" is initialized, if not do it and make it "MC won", I don't know why new variable crossed my mind...