Open MultiverShaun opened 1 year ago
Can confirm, this is still an issue with latest AuraSkills and latest MythicMobs. Also applies for other mechanics as well like modifyDamage or baseDamage. @Archy-X can you just up your event listener to HIGHEST or something?
If you change dev.aurelium.auraskills.bukkit.listeners.DamageListener onDamage listener priority to HIGHEST, it works as expected.
I'm cautious about changing that event priority because there might be unintended effects either within the plugin or in other plugins. I don't remember if it was that event specifically but changing some event priority in the past caused some things to break, so there would have to be lots of testing to make sure everything else works.
What should I test? I can help. What could break within the plugin itself? I think applying strength to the damage at Highest prio is more dangerous than thougness. For example in mythicmobs if a mob has some armor or damage modifier to decrease the incoming damage, then yes, strength should be applied beforehand. Thats one example. But for thougness, I think it should always activate last. Gather all damage, then reduce it and the end. This is what sounds reasonable to me.
Mainly the other instances in the plugin where EntityDamageByEntityEvent is listened to, including item requirements and certain abilities.
I think these are the files and methods that can be affected by changing the event priority. All of this are only affected if you apply the extra damage at highest priority which you technically don't need to do. Only damage reduction should activate at highest priority (as I said previously). So if you create 2 separate listener you can apply the extra damage at high and apply damage reduction at highest. Right now I don't see any reason why wouldn't this work, but correct me if I'm wrong.
HologramsHook: onEntityDamageByEntity LightningBlade: activationListener AlchemyAbilities: goldenHeart
EDIT: HologramsHook is affected either way but it can be easily a monitor priority by all means. Golden heart sadly also affected since it would activate before the other damage reduction which is not the case right now.
Server software and version
Paper 1.19.3
Expected behavior
The toughness modifier decreases the damage dealt by the MythicMobs damage mechanic as expected.
Actual behavior
The damage dealt through the damage mechanic is not decreased when the player has a toughness modifier.
How to reproduce
Additional information
No errors in console.
Agreements