From 0d139cfd86e219bac00ac034a5830832e1512205 Mon Sep 17 00:00:00 2001 From: Kwarde Date: Mon, 15 Jan 2024 20:34:56 +0100 Subject: [PATCH] FIX: #3 that fixes #2 --- player.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/player.py b/player.py index c837233..6432d87 100644 --- a/player.py +++ b/player.py @@ -134,10 +134,10 @@ class Player: opponent.health = 0 elif self.active_spell == spell_crucio: print("- THE NERVE! {name} casts the torture curse. {name_o} is greatly hurt and falls to the ground. They are stunned for 5 (more) moves".format(name=self.name, name_o=opponent.name)) - opponent.stunned_rounts += 5 + opponent.stunned_rounds += 5 elif self.active_spell == spell_imperio: print("- THE NERVE! {name} casts the Imperius curse. \"Why don't you take a nice nap for 10 moves, {name_o}?\". {name_o} submits with pleasure".format(name=self.name, name_o=opponent.name)) - opponent.stunned_rounts = 10 + opponent.stunned_rounds = 10 else: if self.active_spell == spell_mimblewimble: @@ -147,9 +147,9 @@ class Player: print("- {name} casts {spell} on {name_o}. FAILURE! {name_o} blocks the attack!".format(name=self.name, spell=spell_name, name_o=opponent.name)) elif self.active_spell == spell_silencio: if opponent.active_spell != spell_protego: - if opponent.stunned_rounts == 0: + if opponent.stunned_rounds == 0: print("- {name} casts {spell} on {name_o}. SUCCES! {name_o} is silenced for 3 (more) moves".format(name=self.name, spell=spell_name, name_o=opponent.name)) - opponent.stunned_rounts += 3 + opponent.stunned_rounds += 3 else: print("- {name} casts {spell} on {name_o}. FAILURE! {name_o} is already silenced!".format(name=self.name, spell=spell_name, name_o=opponent.name)) else: