Fix sending uneeded damage and movement signals

This commit is contained in:
CactiChameleon9 2022-07-17 19:19:32 +01:00
parent 2b92579dc3
commit c7ee498435

View File

@ -146,12 +146,16 @@ func run_card():
var damage = card_info.damage_amount_addition
for dice_number in input_dice:
damage += card_info.damage_dice_multiplyer * dice_number
if damage != 0:
emit_signal("do_damage", damage, card_info.effect_damage_range)
# calculate the damage amount
var movement = card_info.move_amount_addition
for dice_number in input_dice:
movement += card_info.move_dice_multiplyer * dice_number
if movement != 0:
emit_signal("do_movement", movement)
# do any utility dice returns