1
0

Add .active_spell to Player (removes playerN_active_spell), finish duelling logic

This commit is contained in:
2024-01-15 16:00:44 +01:00
parent 0909e47780
commit 90715ab43f
3 changed files with 38 additions and 37 deletions

View File

@ -1,5 +1,5 @@
from wands import Wand
from spells import Spell, SPELL_TYPE_USELESS, SPELL_TYPE_UNFORGIVABLE
from spells import Spell, SPELL_TYPE_USELESS, SPELL_TYPE_UNFORGIVABLE, spell_none
MAX_PLAYER_HEALTH = 500
@ -8,6 +8,7 @@ class Player:
self.name = name
self.health = MAX_PLAYER_HEALTH
self.wand = wand
self.active_spell = spell_none
self.stunned_rounds = 0
self.decreased_spell_speed = False