Skip to content

Commit 734552e

Browse files
Fix wand swappers hiding spell inventory
1 parent cd7c725 commit 734552e

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

HUD/HUD.gd

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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

Particles/EarthquakeDebris.gd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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()

Spells/SoulEater.gd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ func _physics_process(delta):
2525

2626
func _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)

0 commit comments

Comments
 (0)