Changed MetalClips' second hit's function.

MetalClips' second hit will now let the user direct the magnetic fields
towards a target location.

Also removed the initial damage from a collision with a clip.
This commit is contained in:
Brendan Wilson 2014-11-20 12:22:27 -05:00
parent ad32b410f8
commit 3eef587229

View file

@ -242,7 +242,7 @@ public class MetalClips
(int) player.getLocation().distance(oldLocation));
double distance = loc.distance(oldLocation);
Vector v = Methods.getDirection(target.getLocation(), player.getLocation());
Vector v = Methods.getDirection(target.getLocation(), Methods.getTargetedLocation(player, 10));
if(distance > 1.2)
target.setVelocity(v.normalize().multiply(0.2));
@ -289,8 +289,6 @@ public class MetalClips
{
if(e instanceof LivingEntity && e.getEntityId() != player.getEntityId())
{
Methods.damageEntity(player, e, 0.5);
if(e instanceof Player ||
e instanceof Zombie ||
e instanceof Skeleton)