Fix baston!

pull/1/head
Karim Bogtob 2 years ago
parent a10129a82a
commit e0b3f6cfbe

@ -12,8 +12,8 @@ class Combat < ApplicationRecord
left_hp = left_fighter.health_points
right_hp = right_fighter.health_points
left_fighter.health_points -= right_hp
right_fighter.health_points -= right_hp
left_fighter.get_hit(right_hp)
right_fighter.get_hit(left_hp)
if left_fighter.alive?
self.winner = left_fighter

Loading…
Cancel
Save