sapai icon indicating copy to clipboard operation
sapai copied to clipboard

Ox ability behind pet with faint ability

Open jfrain99 opened this issue 2 years ago • 1 comments

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")

jfrain99 avatar Apr 04 '22 23:04 jfrain99