Skip to content

Several damage causes compare incorrectly #2184

Closed
@jaylawl

Description

@jaylawl

Description

Damage cause enums get mixed up with other stuff (poison, wither, thorns, unknown)

Steps to Reproduce

Simply put this in skript and reload it

on damage:
    damage cause = contact
    damage cause = attack
    damage cause = sweep attack
    damage cause = projectile
    damage cause = suffocation
    damage cause = fall
    damage cause = fire
    damage cause = burning
    damage cause = melting
    damage cause = lava
    damage cause = drowning
    damage cause = block explosion
    damage cause = entity explosion
    damage cause = void
    damage cause = lightning
    damage cause = suicide
    damage cause = starvation
    damage cause = poison
    damage cause = potion
    damage cause = wither
    damage cause = falling block
    damage cause = thorns
    damage cause = dragon's breath
    damage cause = unknown
    damage cause = hitting wall while flying
    damage cause = magma
    damage cause = cramming
    damage cause = dryout

Errors / Screenshots

https://snag.gy/O6Cr8n.jpg

Server Information

  • Server version/platform: paper 1.13.2
  • Skript version: 2.3.6

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugAn issue that needs to be fixed. Alternatively, a PR fixing an issue.priority: mediumIssues that are detrimental to user experience (prohibitive bugs or lack of useful implementation).

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions