Skip to content

Ox ability behind pet with faint ability #69

@jfrain99

Description

@jfrain99

When the ox is placed behind an animal with faint abilities, such as an ant, only one of the faint abilities triggers.

def test_ox_after_ant(self):
    test_team = Team([Pet("ant")], battle=True)
    pet = Pet("ox", shop=Shop(), team=test_team.copy(), player=Player())
    friend_ahead = pet.team.get_ahead(pet)[0]
    te_idx = [0, pet.team.index(friend_ahead)]
    activated_bool, targets, possible = pet.faint_trigger(friend_ahead, te_idx)
    self.assertEqual(pet.team[1].attack, 5)
    self.assertEqual(pet.team[1].health, 5)
    self.assertEqual(pet.team[1].pet.status, "status-melon-armor")

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions