Make the skelleton kit deal static 6 damage for arrows
This commit is contained in:
parent
6851a20e92
commit
21d004b3f2
@ -7,6 +7,7 @@ import org.bukkit.entity.EntityType;
|
||||
import org.bukkit.entity.Player;
|
||||
import org.bukkit.entity.Projectile;
|
||||
import org.bukkit.event.EventHandler;
|
||||
import org.bukkit.event.EventPriority;
|
||||
import org.bukkit.inventory.ItemStack;
|
||||
|
||||
import mineplex.core.common.util.C;
|
||||
@ -30,6 +31,8 @@ import nautilus.game.arcade.kit.perks.PerkRopedArrow;
|
||||
|
||||
public class KitSkeleton extends SmashKit
|
||||
{
|
||||
|
||||
private static double ARROW_DAMAGE = 6;
|
||||
|
||||
private static final Perk[] PERKS = {
|
||||
new PerkSmashStats(5, 1.25, 0.2, 6),
|
||||
@ -107,7 +110,7 @@ public class KitSkeleton extends SmashKit
|
||||
player.getInventory().setArmorContents(PLAYER_ARMOR);
|
||||
}
|
||||
|
||||
@EventHandler
|
||||
@EventHandler(priority = EventPriority.HIGHEST)
|
||||
public void arrowDamage(CustomDamageEvent event)
|
||||
{
|
||||
Player player = event.GetDamagerPlayer(true);
|
||||
@ -128,6 +131,9 @@ public class KitSkeleton extends SmashKit
|
||||
return;
|
||||
}
|
||||
|
||||
event.AddMod("Arrow Nerf", -1.5);
|
||||
//Try making arrows deal static damage
|
||||
double diff = ARROW_DAMAGE - event.GetDamage();
|
||||
|
||||
event.AddMod("Arrow Nerf", diff);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user