Enigmatic Legacy

Enigmatic Legacy

9M Downloads

Ring of seven curses

lab3 opened this issue ยท 1 comments

commented

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

if (neutral.getTarget() == null || !neutral.getTarget().isAlive()) {

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:

  1. Add Iron's Spells n' Spellbooks (https://www.curseforge.com/minecraft/mc-mods/irons-spells-n-spellbooks)
  2. Summon anything with a spell (Polar bear, raise dead, etc)
  3. Put on the ring
  4. get attacked by your own summon
commented

As a temporary fix, you can add the Iron's Spells mobs to the blacklist in the Enigmatic Legacy config.