예제 #1
0
 def test_run_up_push(self):
     battle_abilities.RUN_UP_PUSH().use(self.messenger, self.attacker,
                                        self.defender)
     self.assertFalse(self.attacker.context.stun_length)
     self.assertTrue(self.defender.context.stun_length)
     self.assertTrue(self.defender.health < self.defender.max_health)
     self.assertEqual(self.messenger.messages, ['hero_ability_runuppush'])
예제 #2
0
파일: effects.py 프로젝트: angru/the-tale
class BattleAbilityRunUpPush(BaseBattleAbility):
    TYPE = relations.EFFECT.BATTLE_ABILITY_RUN_UP_PUSH
    ABILITY = battle_abilities.RUN_UP_PUSH(5)