mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-26 23:26:45 +01:00
Fixed one more thing.
This commit is contained in:
parent
132388fe3f
commit
3eb8f6a1a4
@ -309,25 +309,21 @@ public class Skills
|
|||||||
|
|
||||||
public static boolean triggerCheck(Player player, Block block, AbilityType ability) {
|
public static boolean triggerCheck(Player player, Block block, AbilityType ability) {
|
||||||
boolean activate = true;
|
boolean activate = true;
|
||||||
PlayerProfile PP = Users.getProfile(player);
|
|
||||||
|
|
||||||
if (!ability.getPermissions(player)) {
|
if (!ability.getPermissions(player)) {
|
||||||
activate = false;
|
activate = false;
|
||||||
return activate;
|
return activate;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!ability.equals(AbilityType.LEAF_BLOWER)) {
|
|
||||||
if (!ability.getMode(PP)) {
|
|
||||||
activate = false;
|
|
||||||
return activate;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
switch (ability) {
|
switch (ability) {
|
||||||
case BERSERK:
|
case BERSERK:
|
||||||
case GIGA_DRILL_BREAKER:
|
case GIGA_DRILL_BREAKER:
|
||||||
case SUPER_BREAKER:
|
case SUPER_BREAKER:
|
||||||
case LEAF_BLOWER:
|
case LEAF_BLOWER:
|
||||||
|
if (!m.blockBreakSimulate(block, player, true)) {
|
||||||
|
activate = false;
|
||||||
|
break;
|
||||||
|
}
|
||||||
if (!ability.blockCheck(block)) {
|
if (!ability.blockCheck(block)) {
|
||||||
activate = false;
|
activate = false;
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user