Exemplo n.º 1
0
 def test_poison_cloud(self):
     battle_abilities.POISON_CLOUD().use(self.messenger, self.attacker,
                                         self.defender)
     self.assertEqual(self.defender.health, self.defender.max_health)
     self.assertFalse(self.attacker.context.damage_queue_poison)
     self.assertTrue(self.defender.context.damage_queue_poison)
     self.assertEqual(self.messenger.messages,
                      ['hero_ability_poison_cloud'])
Exemplo n.º 2
0
class BattleAbilityPoisonCloud(BaseBattleAbility):
    TYPE = relations.EFFECT.BATTLE_ABILITY_POSION_CLOUD
    ABILITY = battle_abilities.POISON_CLOUD(5)