diff --git a/src/com/projectkorra/projectkorra/chiblocking/SwiftKick.java b/src/com/projectkorra/projectkorra/chiblocking/SwiftKick.java index b31578cd..b0ddbcb8 100644 --- a/src/com/projectkorra/projectkorra/chiblocking/SwiftKick.java +++ b/src/com/projectkorra/projectkorra/chiblocking/SwiftKick.java @@ -5,6 +5,7 @@ import com.projectkorra.projectkorra.ability.ChiAbility; import com.projectkorra.projectkorra.util.DamageHandler; import org.bukkit.Location; +import org.bukkit.Material; import org.bukkit.entity.Entity; import org.bukkit.entity.Player; @@ -33,6 +34,9 @@ public class SwiftKick extends ChiAbility { remove(); return; } + if (player.getLocation().subtract(0, 0.5, 0).getBlock().getType() != Material.AIR) { + return; + } DamageHandler.damageEntity(target, damage, this); if (target instanceof Player && ChiPassive.willChiBlock(player, (Player) target)) { ChiPassive.blockChi((Player) target);