Skip to content

Array.all Issues #9

@Setherizor

Description

@Setherizor

Ran into an odd bug where I couldn't get multiple health actions to apply.

Then found this issue explaining the .all behaivor: godotengine/godot#88250

Problem line example: https://github.com/cluttered-code/godot-health-hitbox-hurtbox/blob/main/addons/health_hitbox_hurtbox/health/health.gd#L132

Changing health.gd's apply_modified_action function to return true in all cases, fixes the iteration or by replacing array.all with a for in loop.

I recommend fixing both uses of .all in health script.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions