mirror of
https://github.com/Sollace/Unicopia.git
synced 2024-11-23 21:38:00 +01:00
Don't harm entities the pegasus is carrying when doing a rainboom
This commit is contained in:
parent
5348e12aca
commit
385c412a9d
1 changed files with 1 additions and 4 deletions
|
@ -9,7 +9,6 @@ import com.minelittlepony.unicopia.ability.magic.Caster;
|
|||
import com.minelittlepony.unicopia.ability.magic.spell.effect.*;
|
||||
import com.minelittlepony.unicopia.entity.damage.UDamageTypes;
|
||||
import com.minelittlepony.unicopia.entity.player.Pony;
|
||||
import com.minelittlepony.unicopia.item.FriendshipBraceletItem;
|
||||
import com.minelittlepony.unicopia.particle.OrientedBillboardParticleEffect;
|
||||
import com.minelittlepony.unicopia.particle.ParticleSpawner;
|
||||
import com.minelittlepony.unicopia.particle.TargetBoundParticleEffect;
|
||||
|
@ -60,9 +59,7 @@ public class RainboomAbilitySpell extends AbstractSpell {
|
|||
}
|
||||
}
|
||||
|
||||
source.findAllEntitiesInRange(RADIUS)
|
||||
.filter(e -> !FriendshipBraceletItem.isComrade(source, e))
|
||||
.forEach(e -> {
|
||||
source.findAllEntitiesInRange(RADIUS, e -> !source.isOwnerOrFriend(e)).forEach(e -> {
|
||||
e.damage(source.damageOf(UDamageTypes.RAINBOOM, source), 6);
|
||||
});
|
||||
EFFECT_RANGE.translate(source.getOrigin()).getBlockPositions().forEach(pos -> {
|
||||
|
|
Loading…
Reference in a new issue