Blow a kiss blowing kiss to yourself

This commit is contained in:
LCastr0 2017-02-01 11:33:17 -02:00
parent c442c820f5
commit c0065ae696
2 changed files with 4 additions and 1 deletions

View File

@ -34,7 +34,7 @@ public class BlowAKissTaunt extends TauntGadget
if (!Recharge.Instance.use(player, getName(), COOLDOWN, true, false, "Cosmetics")) if (!Recharge.Instance.use(player, getName(), COOLDOWN, true, false, "Cosmetics"))
return; return;
HashSet<Material> ignore = new HashSet<Material>(); HashSet<Material> ignore = new HashSet<>();
ignore.add(Material.AIR); ignore.add(Material.AIR);
Location loc = player.getTargetBlock(ignore, 64).getLocation().add(0.5, 0.5, 0.5); Location loc = player.getTargetBlock(ignore, 64).getLocation().add(0.5, 0.5, 0.5);

View File

@ -74,6 +74,9 @@ public class BlowAKissEffect extends Effect
{ {
for (Player player : UtilServer.getPlayers()) for (Player player : UtilServer.getPlayers())
{ {
if (player.equals(_player))
continue;
if (player.getLocation().distanceSquared(_fixedLoc) <= 2.25) if (player.getLocation().distanceSquared(_fixedLoc) <= 2.25)
{ {
UtilParticle.PlayParticle(UtilParticle.ParticleType.HEART, player.getLocation(), 0.25f, 0.25f, 0.25f, 0.5f, 7, UtilParticle.ViewDist.NORMAL); UtilParticle.PlayParticle(UtilParticle.ParticleType.HEART, player.getLocation(), 0.25f, 0.25f, 0.25f, 0.5f, 7, UtilParticle.ViewDist.NORMAL);