Bug Open

~onDamaged triggers extra times and threat level way too high

#6278 opened by Unknown 1 year ago

Unknownreported this bug

Video

[Legacy attachment omitted]

Mob config file

https://pastebin.com/Jr0kw1Hr

Steps to reproduce

Use Purpur 1.21.4-2416, use MythicMobs 5.9.0-SNAPSHOT-824fd561 (this bug is very old, more than half a year), use default-generated MythicMobs folder, add my mob config file (see above), leave ImmunityTable: false (if you set ImmunityTable: true there is no issues), spam click this mob (see video)

Current behavior

When ImmunityTable: false, then ~onDamaged is triggered extra times when spam clicking (or just a lot of players hitting), so even if you set NoDamageTicks to 10, its possible to trigger ~onDamaged 3 or more times per second (should be impossible). And as a result, <target.threat> damage counter is showing bigger amount than expected (it turns out as ~130 if spam clicking a mob with 100 health)

Intended correct behavior

~onDamaged shouldnt trigger more than 2 times per second (since default NoDamageTicks is 10) and <target.threat> shouldnt show way too high number (±5% margin of error is fine, but not +34% in my test case)

Unknowncommented

Additional info: same overcounting issue happens if you manually count damage via <skill.var.damage-amount> + ~onDamaged (instead of simple <target.threat>)

Unknowncommented

Any extra info required for solution?

Sign in to join the discussion.