Skip to content

Commit

Permalink
Update SpellCaster.gd
Browse files Browse the repository at this point in the history
was causing a bug that allowed for spells to be rapidly cast by non-host players
  • Loading branch information
PureSpeeed authored Jul 6, 2024
1 parent 99efd5c commit 10fe143
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Scripts/Components/SpellCaster.gd
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ func try_request_cast_spell(cast_pos: Vector3 = Vector3.DOWN, team_name: String
if holding_down_spell == false:
holding_down_spell = true

if allowed_to_cast == true || Lobby.is_host == false:
if allowed_to_cast == true:
var cast_direction: Vector2
var player_pos: Vector3 = parent_entity.get_global_transform().origin

Expand Down

0 comments on commit 10fe143

Please sign in to comment.