Factions compatibility bug
gh0ztbuster opened this issue ยท 1 comments
I'm was trying to apply an effect to ally faction members when the applyDefenseEffect was activated and I found that it was blocked by "You cannot hurt your own faction member."
I tried to apply this to the ally player
LivingEntity le = (LivingEntity) entity;
double health = le.getHealth() + health(level);
if (health > le.getMaxHealth()) health = le.getMaxHealth();
le.setHealth(health);