mirror of
https://github.com/JHDev2006/Super-Mario-Bros.-Remastered-Public.git
synced 2025-10-22 23:48:11 +00:00
fixed an issue where you could throw a fireball frame one of exiting a pipe
This commit is contained in:
@@ -2,8 +2,8 @@ extends PowerUpState
|
||||
|
||||
var fireball_amount := 0
|
||||
const FIREBALL = preload("res://Scenes/Prefabs/Entities/Items/Fireball.tscn")
|
||||
func update(_delta: float) -> void:
|
||||
if Global.player_action_just_pressed("action", player.player_id) and fireball_amount < 2 and player.state_machine.state.name == "Normal":
|
||||
func update(delta: float) -> void:
|
||||
if Global.player_action_just_pressed("action", player.player_id) and fireball_amount < 2 and player.state_machine.state.name == "Normal" and delta > 0:
|
||||
throw_fireball()
|
||||
|
||||
func throw_fireball() -> void:
|
||||
|
Reference in New Issue
Block a user