File tree Expand file tree Collapse file tree 3 files changed +3
-2
lines changed
Expand file tree Collapse file tree 3 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -217,6 +217,7 @@ func _process(delta):
217217 for i in WandSpellHUD .get_child_count ():
218218 # If a non-empty wand slot is selected
219219 if Items .get_player_wand () != null :
220+ WandSpellHUD .visible = true
220221 # Make the spell hud visible
221222 var wand :Wand = Items .get_player_wand ()
222223 # If the wand has this slot
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ func _ready() -> void:
1919 if Map .get_tiles_cellv (position_in_map ) == 2 : continue
2020 if randf () > chance :
2121 break
22- $ TileMap .set_tiles_cellv (i , Map .get_tiles_cellv (position_in_map + i ))
22+ $ TileMap .set_cellv (i , Map .get_tiles_cellv (position_in_map + i ))
2323 Map .set_tiles_cellv (position_in_map + i , - 1 )
2424 var adj := adjacencies .duplicate ()
2525 adj .shuffle ()
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ func _physics_process(delta):
2525
2626func _on_hit_something ():
2727 var col = spell_behavior .get_collider ()
28- if col .has_method ("health_object" ) and not did and col .health_object ().soul_module .amount > 0.0 :
28+ if col .has_method ("health_object" ) and not did and col .health_object ().soul_module and col . health_object (). soul_module .amount > 0.0 :
2929 did = true
3030 if is_instance_valid (CastInfo .Caster ):
3131 var shatter := min (col .health_object ().soul_module .amount , 0.025 )
You can’t perform that action at this time.
0 commit comments