fixed hero create

This commit is contained in:
Alexander Karpov 2022-08-01 18:23:36 +03:00
parent 6c16ff008d
commit 151912b3bb

View File

@ -41,9 +41,9 @@ def create_first_deck(player: Player):
counter += 1
hero.health = random.randint(0, 10)
hero.attack = random.randint(0, 10)
hero.speed = random.randint(0, 10)
hero.health = random.randint(1, 10)
hero.attack = random.randint(1, 10)
hero.speed = random.randint(1, 10)
hero.save()
HeroInDeck.objects.create(deck=deck, hero=hero, x=pos_x, y=pos_y)