Skip to content

Commit

Permalink
feat: mirco-buff Ravenous Claws
Browse files Browse the repository at this point in the history
  • Loading branch information
Elenterius committed Sep 6, 2023
1 parent 2d12e11 commit 8fc4b84
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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());
}

Expand Down Expand Up @@ -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()) {
Expand All @@ -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
}
}
}
Expand Down

0 comments on commit 8fc4b84

Please sign in to comment.