Stacking effects

This commit is contained in:
2025-03-02 03:12:51 +01:00
parent a562079d71
commit 590ca23728
5 changed files with 35 additions and 35 deletions

View File

@@ -27,7 +27,7 @@ func on_area2d_body_entered(body: Node2D) -> void:
if invulnerability_component and invulnerability_component.is_invulnerable():
return
if status_effect_data.effect_type != StatusEffectComponent.EffectType.NONE:
if status_effect_data and status_effect_data.effect_type != StatusEffectComponent.EffectType.NONE:
effect_inflicted.emit(body, status_effect_data)
return