diff --git a/PCs/FSM/fighting_state.gd b/PCs/FSM/fighting_state.gd index 643422e..281dcc6 100644 --- a/PCs/FSM/fighting_state.gd +++ b/PCs/FSM/fighting_state.gd @@ -14,6 +14,8 @@ func enter_state() -> void: hero.weapons[hero.equipped_weapon].current_energy = hero.weapons[hero.equipped_weapon].max_energy #this had to be commented out coz the new energy bar thinks "energy changed" is "energy used" #weapons[equipped_weapon].energy_changed.emit(weapons[equipped_weapon].current_energy) + for x: int in hero.hand.contents.size(): + hero.discard_pile.add(hero.hand.remove_at(hero.hand.contents.size() - 1)) hero.weapon_swap_timer.start() hero.hud.primary_duration.visible = false hero.hud.secondary_duration.visible = false