将女巫添加到镇暴弹增伤列表当中

This commit is contained in:
Atsuishio 2025-06-19 14:40:00 +08:00 committed by Light_Quanta
parent 188c87a30c
commit 86cf792fb2
No known key found for this signature in database
GPG key ID: 11A39A1B8C890959

View file

@ -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;
} }