1
0
mirror of https://github.com/mcMMO-Dev/mcMMO.git synced 2026-02-20 02:33:15 +01:00

Impact fix

This commit is contained in:
bm01
2012-03-02 23:19:12 +01:00
parent 1ac544511c
commit 3f5b2bdcee
2 changed files with 13 additions and 23 deletions

View File

@@ -82,11 +82,13 @@ public class Combat
Axes.axeCriticalCheck(attacker, event, pluginx); //Critical hit
//Impact
if(event.getEntity() instanceof LivingEntity)
Axes.impact(attacker, (LivingEntity)event.getEntity());
if (!(event instanceof FakeEntityDamageByEntityEvent) && PPa.getSkullSplitterMode())
Axes.applyAoeDamage(attacker, event, pluginx);
if(!(event instanceof FakeEntityDamageByEntityEvent))
{
Axes.impact(attacker, target);
if (PPa.getSkullSplitterMode())
Axes.applyAoeDamage(attacker, event, pluginx);
}
if(target instanceof Player)
PvPExperienceGain(attacker, PPa, (Player) target, event.getDamage(), SkillType.AXES);