mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-30 00:56:47 +01:00
Fixed bug where some combat skills weren't taking into account all
damage modifiers.
This commit is contained in:
parent
6afcce4b7c
commit
9e604aed5e
@ -47,7 +47,6 @@ public class Combat {
|
|||||||
|
|
||||||
Entity damager = event.getDamager();
|
Entity damager = event.getDamager();
|
||||||
LivingEntity target = (LivingEntity) event.getEntity();
|
LivingEntity target = (LivingEntity) event.getEntity();
|
||||||
int damage = event.getDamage();
|
|
||||||
EntityType damagerType = damager.getType();
|
EntityType damagerType = damager.getType();
|
||||||
EntityType targetType = target.getType();
|
EntityType targetType = target.getType();
|
||||||
|
|
||||||
@ -65,7 +64,7 @@ public class Combat {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (PPa.getSerratedStrikesMode()) {
|
if (PPa.getSerratedStrikesMode()) {
|
||||||
applyAbilityAoE(attacker, target, damage, plugin, SkillType.SWORDS);
|
applyAbilityAoE(attacker, target, event.getDamage(), plugin, SkillType.SWORDS);
|
||||||
}
|
}
|
||||||
|
|
||||||
startGainXp(attacker, PPa, target, SkillType.SWORDS, plugin);
|
startGainXp(attacker, PPa, target, SkillType.SWORDS, plugin);
|
||||||
@ -84,7 +83,7 @@ public class Combat {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (PPa.getSkullSplitterMode()) {
|
if (PPa.getSkullSplitterMode()) {
|
||||||
applyAbilityAoE(attacker, target, damage, plugin, SkillType.AXES);
|
applyAbilityAoE(attacker, target, event.getDamage(), plugin, SkillType.AXES);
|
||||||
}
|
}
|
||||||
|
|
||||||
startGainXp(attacker, PPa, target, SkillType.AXES, plugin);
|
startGainXp(attacker, PPa, target, SkillType.AXES, plugin);
|
||||||
@ -95,7 +94,7 @@ public class Combat {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (PPa.getBerserkMode() && mcPermissions.getInstance().berserk(attacker)) {
|
if (PPa.getBerserkMode() && mcPermissions.getInstance().berserk(attacker)) {
|
||||||
event.setDamage((int) (damage * 1.5));
|
event.setDamage((int) (event.getDamage() * 1.5));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (targetType.equals(EntityType.PLAYER) && mcPermissions.getInstance().disarm(attacker)) {
|
if (targetType.equals(EntityType.PLAYER) && mcPermissions.getInstance().disarm(attacker)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user