From 8fc4b8400192fabea9a70e9cfab4e7771eca7dc9 Mon Sep 17 00:00:00 2001 From: Elenterius Date: Wed, 6 Sep 2023 16:22:47 +0200 Subject: [PATCH] feat: mirco-buff Ravenous Claws --- .../elenterius/biomancy/item/weapon/RavenousClawsItem.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/github/elenterius/biomancy/item/weapon/RavenousClawsItem.java b/src/main/java/com/github/elenterius/biomancy/item/weapon/RavenousClawsItem.java index d80bcd408..fd3a2c5ef 100644 --- a/src/main/java/com/github/elenterius/biomancy/item/weapon/RavenousClawsItem.java +++ b/src/main/java/com/github/elenterius/biomancy/item/weapon/RavenousClawsItem.java @@ -69,7 +69,7 @@ public RavenousClawsItem(Tier tier, float attackDamage, float attackSpeed, int m float attackSpeedModifier = (float) (attackSpeed - Attributes.ATTACK_SPEED.getDefaultValue()); brokenAttributes = Lazy.of(() -> createDefaultAttributeModifiers(0, 0, -0.5f).build()); - dormantAttributes = Lazy.of(() -> createDefaultAttributeModifiers(-1 + attackDamage, attackSpeedModifier, -0.5f).build()); + dormantAttributes = Lazy.of(() -> createDefaultAttributeModifiers(-1 + attackDamage, attackSpeedModifier, 0).build()); awakenedAttributes = Lazy.of(() -> createDefaultAttributeModifiers(-1 + attackDamage + 2, attackSpeedModifier, 0.5f).build()); } @@ -249,6 +249,8 @@ public boolean hurtEnemy(ItemStack stack, LivingEntity target, LivingEntity atta CombatUtil.applyBleedEffect(target, 20); } + + target.invulnerableTime = 0; //make victims vulnerable the next attack regardless of the damage amount } if (target.isDeadOrDying()) { @@ -272,6 +274,8 @@ public boolean hurtEnemy(ItemStack stack, LivingEntity target, LivingEntity atta CombatUtil.applyBleedEffect(target, 20); } + + target.invulnerableTime = 0; //make victims vulnerable the next attack regardless of the damage amount } } }