wind blade fall damage
This commit is contained in:
parent
20a9ed5a6e
commit
9082ace3f3
@ -332,7 +332,7 @@ public class ClansManager extends MiniClientPlugin<ClientClan>implements IRelati
|
||||
new Location(Spawn.getSpawnWorld(), 295.5, 207, 6.5),
|
||||
new Location(Spawn.getSpawnWorld(), 304.5, 207, -2.5),
|
||||
new Location(Spawn.getSpawnWorld(), 313.5, 207, 6.5),
|
||||
new Location(Spawn.getSpawnWorld(), 304.5, 207, -15.5)
|
||||
new Location(Spawn.getSpawnWorld(), 304.5, 207, 15.5)
|
||||
);
|
||||
|
||||
for (Location location : jumpOffHolograms)
|
||||
|
@ -3,6 +3,7 @@ package mineplex.game.clans.items.legendaries;
|
||||
import org.bukkit.Material;
|
||||
import org.bukkit.Sound;
|
||||
import org.bukkit.entity.Player;
|
||||
import org.bukkit.event.entity.EntityDamageEvent.DamageCause;
|
||||
import org.bukkit.util.Vector;
|
||||
|
||||
import mineplex.core.common.util.C;
|
||||
@ -123,6 +124,11 @@ public class WindBlade extends LegendaryItem
|
||||
@Override
|
||||
public void onAttack(CustomDamageEvent event, Player wielder)
|
||||
{
|
||||
if (event.GetCause() == DamageCause.FALL && event.GetDamageeEntity().equals(wielder))
|
||||
{
|
||||
event.SetCancelled("Wind Blade");
|
||||
}
|
||||
|
||||
event.AddMod("Wind Blade", 6);
|
||||
}
|
||||
|
||||
@ -132,7 +138,6 @@ public class WindBlade extends LegendaryItem
|
||||
direction.multiply(FLIGHT_VELOCITY);
|
||||
|
||||
player.setVelocity(direction);
|
||||
player.setFallDistance(-60f);
|
||||
}
|
||||
|
||||
private boolean canPropel(Player player)
|
||||
|
Loading…
Reference in New Issue
Block a user