Ring of seven curses
lab3 opened this issue ยท 1 comments
We are getting bug reports on our github that the Ring of Seven Curses is making player's own summoned entities attack them which is surprising because the entities are allied to the player.
Related issue: iron431/irons-spells-n-spellbooks#421
I took a look through your code and pinpointed it to here
I would recommend adding an isAlliedTo check which could look like this:
if (!neutral.isAlliedTo(player) && (neutral.getTarget() == null || !neutral.getTarget().isAlive())) {
How to Reproduce:
- Add Iron's Spells n' Spellbooks (https://www.curseforge.com/minecraft/mc-mods/irons-spells-n-spellbooks)
- Summon anything with a spell (Polar bear, raise dead, etc)
- Put on the ring
- get attacked by your own summon