将女巫添加到镇暴弹增伤列表当中
This commit is contained in:
parent
188c87a30c
commit
86cf792fb2
1 changed files with 2 additions and 1 deletions
|
@ -40,6 +40,7 @@ import net.minecraft.world.entity.ai.attributes.Attributes;
|
||||||
import net.minecraft.world.entity.monster.Monster;
|
import net.minecraft.world.entity.monster.Monster;
|
||||||
import net.minecraft.world.entity.monster.Ravager;
|
import net.minecraft.world.entity.monster.Ravager;
|
||||||
import net.minecraft.world.entity.monster.Vex;
|
import net.minecraft.world.entity.monster.Vex;
|
||||||
|
import net.minecraft.world.entity.monster.Witch;
|
||||||
import net.minecraft.world.entity.player.Player;
|
import net.minecraft.world.entity.player.Player;
|
||||||
import net.minecraft.world.entity.projectile.Projectile;
|
import net.minecraft.world.entity.projectile.Projectile;
|
||||||
import net.minecraft.world.item.ItemStack;
|
import net.minecraft.world.item.ItemStack;
|
||||||
|
@ -523,7 +524,7 @@ public class ProjectileEntity extends Projectile implements IEntityWithComplexSp
|
||||||
this.damage *= this.undeadMultiple;
|
this.damage *= this.undeadMultiple;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (entity instanceof LivingEntity living && (living.getType().is(EntityTypeTags.ILLAGER) || living instanceof Vex || living instanceof Ravager)) {
|
if (entity instanceof LivingEntity living && (living.getType().is(EntityTypeTags.ILLAGER) || living instanceof Vex || living instanceof Ravager || living instanceof Witch)) {
|
||||||
this.damage *= this.illagerMultiple;
|
this.damage *= this.illagerMultiple;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue