Skip to content

Commit

Permalink
fixed actionObjective use wrong default value for the hand
Browse files Browse the repository at this point in the history
  • Loading branch information
Wolf2323 committed Nov 26, 2024
1 parent 075ce92 commit f668114
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -84,12 +84,12 @@ public ActionObjective(final Instruction instruction) throws InstructionParseExc
range = instruction.getVarNum(instruction.getOptional("range", "0"));
cancel = instruction.hasArgument("cancel");
final String handString = instruction.getOptional("hand");
if (handString == null || ANY.equalsIgnoreCase(handString)) {
slot = null;
} else if (handString.equalsIgnoreCase(EquipmentSlot.HAND.toString())) {
if (handString == null || handString.equalsIgnoreCase(EquipmentSlot.HAND.toString())) {
slot = EquipmentSlot.HAND;
} else if (handString.equalsIgnoreCase(EquipmentSlot.OFF_HAND.toString())) {
slot = EquipmentSlot.OFF_HAND;
} else if (ANY.equalsIgnoreCase(handString)) {
slot = null;
} else {
throw new InstructionParseException("Invalid hand value: " + handString);
}
Expand Down

0 comments on commit f668114

Please sign in to comment.