Fix damage being dealt

This commit is contained in:
CactiChameleon9 2022-07-19 08:25:02 +01:00
parent c7ee498435
commit 69e00d25a3
2 changed files with 5 additions and 5 deletions

View File

@ -8,9 +8,9 @@ name = "Broadsword"
type = 0
effect_damage_range = 2
move_amount_addition = 0
move_dice_multiplyer = 1
move_dice_multiplyer = 0
damage_amount_addition = 0
damage_dice_multiplyer = 0
damage_dice_multiplyer = 1
effects = [ ]
accepted_dice = [ ]
number_of_dice = 2

View File

@ -13,7 +13,7 @@ func _ready():
$UI/CardView.selected = false
self.player_to_move = false
$UI/CardView.draw_card("Poisonous apple")
$UI/CardView.draw_card("Broadsword")
$UI/CardView.draw_card("Sprint")
$UI/CardView.draw_card("Magic Carving Knife")
@ -34,10 +34,10 @@ func do_damage_around_player(damage, damage_range):
for enemy in get_children():
if not enemy.is_in_group("Enemy"):
return
continue
if ($Player.map_position - enemy.map_position).length() > damage_range:
return
continue
enemy.take_damage(damage)