Remove FireBlast Fire Correctly

This commit is contained in:
Nathan Braun 2015-08-20 14:21:17 -07:00
parent fbbbe3346a
commit 6bf6dd4868
2 changed files with 7 additions and 1 deletions

View file

@ -223,7 +223,9 @@ public class FireBlast extends CoreAbility {
private void ignite(Location location) {
for (Block block : GeneralMethods.getBlocksAroundPoint(location, affectingradius)) {
if (FireStream.isIgnitable(player, block) && !safe.contains(block)) {
new Plantbending(block);
if (WaterMethods.isPlantbendable(block)) {
new Plantbending(block);
}
block.setType(Material.FIRE);
if (dissipate) {
FireStream.ignitedblocks.put(block, player);

View file

@ -307,6 +307,10 @@ public class WaterMethods {
return true;
return false;
}
public static boolean isPlantbendable(Block block) {
return WaterMethods.isPlantbendable(block, false);
}
public static void playFocusWaterEffect(Block block) {
block.getWorld().playEffect(block.getLocation(), Effect.SMOKE, 4, 20);