Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fly's ability counter should not increment if there is no room to summon #70

Open
jimkaal opened this issue Apr 7, 2022 · 0 comments
Open

Comments

@jimkaal
Copy link
Contributor

jimkaal commented Apr 7, 2022

If Fly can't summon a zombie fly, the ability counter should not increment.
Below example with a priority cricket that summons its zombie cricket first, leaving no room for the fly.

    def test_ability_counter_unchanged(self):
        cricket = Pet("cricket")
        cricket._attack = 10
        player = Player(shop=["sleeping-pill"], team=[cricket, "fish", "fish", "tiger", "fly"])
        player.buy_food(0, 0)

        self.assertEqual(player.team[0].pet.name, "pet-zombie-cricket")
        ### no zombie fly spawned, ability counter should remain 0
        self.assertEqual(player.team[4].pet.ability_counter, 0)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant