GC-spigot / AdvancedEnchantments

Superior Custom Enchantments Creator for Minecraft And Spigot platform
141 stars 61 forks source link

Adding souls upon taking armor does not run for every armor piece when activated #4238

Closed ArmonicPvP closed 2 months ago

ArmonicPvP commented 2 months ago

Describe the bug

When adding souls upon taking damage, the effect only runs for one piece, not all of them.

How to reproduce

soulforged: display: '%group-color%Soulforged' description: Chance to collect souls when attacked applies-to: Armor type: DEFENSE;DEFENSE_MOB;DEFENSE_MOB_PROJECTILE;DEFENSE_PROJECTILE group: SOUL applies:

Screenshots / Videos

No response

"/ae plinfo" link

https://paste.md-5.net/imetozurel

Server Log

No response

GC-spigot commented 2 months ago

Why would this add to all armor pieces? It only adds to the item which armor is worn on.

ArmonicPvP commented 2 months ago

Let me rephrase: it appears to only run once ehen successful when it should check for each armor piece. So if you have it on all 4 pieces, it will run once for each piece. Instead, it seems to only run once total, even if each piece of armor activates the ability on its own piece.