From 533d7137749c0ee166c5544f2640c7edd8936578 Mon Sep 17 00:00:00 2001 From: Jay Stannon Date: Thu, 28 Jul 2016 06:12:16 +1000 Subject: [PATCH] Fixed charged fireblast not dealing damage when FireGriefing was off. (#524) Sorry I created this issue with my last PR. --- .../projectkorra/firebending/FireBlastCharged.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/com/projectkorra/projectkorra/firebending/FireBlastCharged.java b/src/com/projectkorra/projectkorra/firebending/FireBlastCharged.java index 9702f17c..56f52cb2 100644 --- a/src/com/projectkorra/projectkorra/firebending/FireBlastCharged.java +++ b/src/com/projectkorra/projectkorra/firebending/FireBlastCharged.java @@ -151,14 +151,14 @@ public class FireBlastCharged extends FireAbility { public void explode() { boolean explode = true; for (Block block : GeneralMethods.getBlocksAroundPoint(location, 3)) { - if (GeneralMethods.isRegionProtectedFromBuild(this, block.getLocation()) || !canFireGrief()) { + if (GeneralMethods.isRegionProtectedFromBuild(this, block.getLocation())) { explode = false; break; } } if (explode) { - if (canDamageBlocks && explosionRadius > 0) { + if (canDamageBlocks && explosionRadius > 0 && canFireGrief()) { explosion = player.getWorld().spawn(location, TNTPrimed.class); explosion.setFuseTicks(0); double yield = explosionRadius;