fixed overcharge not working for single target slam
@@ -53,6 +53,7 @@ public class SlamEffect extends ChargedAbilityEffect {
float knockbackMultiplier = 1f;
boolean isDefensive = isDefensive(item, itemStack, hand);
+ int overchargeBonus = canOvercharge(item, itemStack) ? getOverchargeBonus(item, itemStack, chargedTicks) : 0;
int revengeLevel = item.getEffectLevel(itemStack, ItemEffect.abilityRevenge);
if (isDefensive) {
@@ -60,6 +61,12 @@ public class SlamEffect extends ChargedAbilityEffect {
stunDuration = item.getEffectLevel(itemStack, ItemEffect.abilityDefensive);
}
+ if (overchargeBonus > 0) {
+ double bonus = overchargeBonus * item.getEffectLevel(itemStack, ItemEffect.abilityOvercharge) / 100d;
+ damageMultiplier += bonus;
+ knockbackMultiplier += bonus;
+ }
+
int momentumLevel = item.getEffectLevel(itemStack, ItemEffect.abilityMomentum);
if (momentumLevel > 0) {
stunDuration = momentumLevel;
