Magnet not giving the kill
This commit is contained in:
parent
265ab620e4
commit
c2344a0494
@ -9,6 +9,7 @@ import org.bukkit.event.EventHandler;
|
||||
import org.bukkit.event.block.Action;
|
||||
import org.bukkit.event.block.BlockBreakEvent;
|
||||
import org.bukkit.event.block.BlockPlaceEvent;
|
||||
import org.bukkit.event.entity.EntityDamageEvent.DamageCause;
|
||||
import org.bukkit.event.entity.PlayerDeathEvent;
|
||||
import org.bukkit.event.inventory.InventoryClickEvent;
|
||||
import org.bukkit.event.player.PlayerDropItemEvent;
|
||||
@ -46,7 +47,7 @@ public class PerkMagnetism extends Perk
|
||||
|
||||
public PerkMagnetism(long cooldown, int range, double magnitudeFactor)
|
||||
{
|
||||
super("Magnestism", new String[] {
|
||||
super("Magnetism", new String[] {
|
||||
});
|
||||
|
||||
_cooldown = cooldown;
|
||||
@ -136,7 +137,8 @@ public class PerkMagnetism extends Perk
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Manager.GetDamage().NewDamageEvent(target, player, null, DamageCause.CUSTOM, 1, false, true, true, player.getName(), GetName());
|
||||
UtilParticle.PlayParticleToAll(ParticleType.FIREWORKS_SPARK, player.getEyeLocation(), 1, 1, 1, 0.01F, 20, ViewDist.NORMAL);
|
||||
|
||||
Vector vector = UtilAlg.getTrajectory(target, player).multiply((.5 + magnitude / 4) * _magnituideFactor);
|
||||
|
Loading…
Reference in New Issue
Block a user