feat: energy decrease
This commit is contained in:
parent
5395f971cb
commit
0d261242b3
3 changed files with 4 additions and 2 deletions
|
|
@ -73,6 +73,7 @@ func _on_update(transition):
|
|||
monster_card_ui.visible = true
|
||||
monster_card_ui.show_monster(monster)
|
||||
incoming_damage_label.text = "Incoming Damage: " + str(monster.health_delta)
|
||||
|
||||
else:
|
||||
monster_card_ui.visible = false
|
||||
if match_manager.phase in [Match.Phase.SUMMON, Match.Phase.SUPPORT_1, Match.Phase.SUPPORT_2]:
|
||||
|
|
@ -113,7 +114,6 @@ func _on_update(transition):
|
|||
if card is MonsterCard:
|
||||
var monster_card:MonsterCardUI = monster_card_prefab.instantiate()
|
||||
monster_card.show_monster(MatchMonster.new(card, card.base_health, 0))
|
||||
|
||||
if !is_disabled:
|
||||
monster_card.left_clicked.connect(func ():
|
||||
_pop_this_card(monster_card)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue