Fixed abilities activating with the wrong tool in hand

This commit is contained in:
GJ
2013-01-25 13:54:32 -05:00
parent c220f0dee5
commit 91e8051cee
4 changed files with 44 additions and 42 deletions

View File

@ -425,10 +425,6 @@ public class Skills {
ToolType tool = type.getTool();
AbilityType ability = type.getAbility();
if (!profile.getToolPreparationMode(tool) || !ability.getPermissions(player)) {
return;
}
profile.setToolPreparationMode(tool, false);
/* Axes and Woodcutting are odd because they share the same tool.
@ -483,11 +479,6 @@ public class Skills {
public static boolean triggerCheck(Player player, Block block, AbilityType ability) {
boolean activate = true;
if (!ability.getPermissions(player)) {
activate = false;
return activate;
}
switch (ability) {
case BERSERK:
case GIGA_DRILL_BREAKER: