Example #1
0
    def test_blood_apply(self):
        self.assertEqual(self.hero.pvp.effectiveness, 0)
        ability = Blood(hero=self.hero, enemy=self.enemy)
        ability.apply()
        self.assertEqual(self.hero.pvp.effectiveness, 0)

        self.hero.pvp.set_energy(1)
        ability.apply()
        self.assertTrue(self.hero.pvp.effectiveness > 0)
Example #2
0
    def test_blood_apply(self):
        self.assertEqual(self.hero.pvp.effectiveness, 0)
        ability = Blood(hero=self.hero, enemy=self.enemy)
        ability.apply()
        self.assertEqual(self.hero.pvp.effectiveness,  0)

        self.hero.pvp.set_energy(1)
        ability.apply()
        self.assertTrue(self.hero.pvp.effectiveness > 0)
Example #3
0
    def test_blood_apply(self):
        self.meta_action_battle.hero_1_pvp.set_effectiveness(0)
        ability = Blood(hero=self.hero, enemy=self.enemy)
        ability.apply()
        self.assertEqual(self.meta_action_battle.hero_1_pvp.effectiveness,  0)

        self.meta_action_battle.hero_1_pvp.set_energy(1)
        ability.apply()
        self.assertTrue(self.meta_action_battle.hero_1_pvp.effectiveness > 0)
Example #4
0
    def test_blood_apply(self):
        self.meta_action_battle.hero_1_pvp.set_effectiveness(0)
        ability = Blood(hero=self.hero, enemy=self.enemy)
        ability.apply()
        self.assertEqual(self.meta_action_battle.hero_1_pvp.effectiveness, 0)

        self.meta_action_battle.hero_1_pvp.set_energy(1)
        ability.apply()
        self.assertTrue(self.meta_action_battle.hero_1_pvp.effectiveness > 0)
Example #5
0
    def test_blood_apply__with_might(self):
        self.hero.pvp.set_energy(1000)
        self.assertEqual(self.hero.pvp.effectiveness, 0)
        ability = Blood(hero=self.hero, enemy=self.enemy)
        ability.apply()

        clean_effectiveness = self.hero.pvp.effectiveness

        self.hero.pvp.set_energy(1000)
        self.hero.might = 10000
        self.hero.pvp.set_effectiveness(0)
        ability = Blood(hero=self.hero, enemy=self.enemy)
        ability.apply()

        self.assertTrue(clean_effectiveness < self.hero.pvp.effectiveness)
Example #6
0
    def test_blood_apply__with_might(self):
        self.hero.pvp.set_energy(1000)
        self.assertEqual(self.hero.pvp.effectiveness, 0)
        ability = Blood(hero=self.hero, enemy=self.enemy)
        ability.apply()

        clean_effectiveness = self.hero.pvp.effectiveness

        self.hero.pvp.set_energy(1000)
        self.hero.might = 10000
        self.hero.pvp.set_effectiveness(0)
        ability = Blood(hero=self.hero, enemy=self.enemy)
        ability.apply()

        self.assertTrue(clean_effectiveness < self.hero.pvp.effectiveness)