Bug Closed · Resolved

DamageAmount Condition Causes Error On Fall Damage

#5284 opened by Unknown 2 years ago

Unknownreported this bug

Summary

When a mob has a skill with the damageamount condition and it takes fall damage, the skill does not proc, and the console receives an error. This was reproduced in MythicMobs 5.6.1 and 5.6.2. I am unable to test 5.7.0 snapshots, as my server is running 1.19.4 and the snapshot .jar is not supported.

Steps to reproduce

Take any mob with a "damageamount" condition with an ~onDamaged trigger, spawn them up in the sky, and check your console when they land. Here's a simple test file: [Legacy attachment omitted]

The mob's name is "errorgenerator."

Current behavior

Describe what happens currently, while the bug is affecting your server.

Intended correct behavior

The condition should be checked normally.

Server log file

https://pastebin.com/Dq0ibNfR

Debug log snippet

https://pastebin.com/G7dvhmqt

Proposed fixes

Ensure fall damage correctly triggers DamageAmount condition.

Sign in to join the discussion.