From 3cf3bc7e81b619fcc9de20ce2a826973f422e520 Mon Sep 17 00:00:00 2001 From: legonzaur Date: Thu, 16 May 2024 23:14:46 +0200 Subject: [PATCH] Fix stun_champion effect being infinite Closes legonzaur/heron-realms-front#54 --- src/model/turn.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/model/turn.py b/src/model/turn.py index 7fc33dc..b67eb89 100644 --- a/src/model/turn.py +++ b/src/model/turn.py @@ -318,7 +318,7 @@ class Turn(Serializable): continue if not c.guard and self.check_for_guard(p.team): print("You cannot stun this champion if a guard is present") - return + return False await self.player.stun(str(c.uuid)) await self.player.game.notify_controller( @@ -327,7 +327,7 @@ class Turn(Serializable): await self.player.game.notify_controller( MessageType.UPDATE, p.turn.serialize() ) - return + return True print("card not found")