Fixed charged fireblast not dealing damage when FireGriefing was off. (#524)

Sorry I created this issue with my last PR.
This commit is contained in:
Jay Stannon 2016-07-28 06:12:16 +10:00 committed by OmniCypher
parent 3150b34487
commit 533d713774

View file

@ -151,14 +151,14 @@ public class FireBlastCharged extends FireAbility {
public void explode() { public void explode() {
boolean explode = true; boolean explode = true;
for (Block block : GeneralMethods.getBlocksAroundPoint(location, 3)) { for (Block block : GeneralMethods.getBlocksAroundPoint(location, 3)) {
if (GeneralMethods.isRegionProtectedFromBuild(this, block.getLocation()) || !canFireGrief()) { if (GeneralMethods.isRegionProtectedFromBuild(this, block.getLocation())) {
explode = false; explode = false;
break; break;
} }
} }
if (explode) { if (explode) {
if (canDamageBlocks && explosionRadius > 0) { if (canDamageBlocks && explosionRadius > 0 && canFireGrief()) {
explosion = player.getWorld().spawn(location, TNTPrimed.class); explosion = player.getWorld().spawn(location, TNTPrimed.class);
explosion.setFuseTicks(0); explosion.setFuseTicks(0);
double yield = explosionRadius; double yield = explosionRadius;