From 3eb8f6a1a4b25e89a1b7ebc62b546a84ec4fb4a0 Mon Sep 17 00:00:00 2001 From: GJ Date: Fri, 9 Mar 2012 19:28:33 -0500 Subject: [PATCH] Fixed one more thing. --- src/main/java/com/gmail/nossr50/skills/Skills.java | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/src/main/java/com/gmail/nossr50/skills/Skills.java b/src/main/java/com/gmail/nossr50/skills/Skills.java index cce71efbe..ffaba2c11 100644 --- a/src/main/java/com/gmail/nossr50/skills/Skills.java +++ b/src/main/java/com/gmail/nossr50/skills/Skills.java @@ -309,25 +309,21 @@ public class Skills public static boolean triggerCheck(Player player, Block block, AbilityType ability) { boolean activate = true; - PlayerProfile PP = Users.getProfile(player); if (!ability.getPermissions(player)) { activate = false; return activate; } - if (!ability.equals(AbilityType.LEAF_BLOWER)) { - if (!ability.getMode(PP)) { - activate = false; - return activate; - } - } - switch (ability) { case BERSERK: case GIGA_DRILL_BREAKER: case SUPER_BREAKER: case LEAF_BLOWER: + if (!m.blockBreakSimulate(block, player, true)) { + activate = false; + break; + } if (!ability.blockCheck(block)) { activate = false; break;