forked from MagicBane/Server
Trailing bow can sometimes be missing the bool.
This commit is contained in:
@@ -153,10 +153,6 @@ public class PowersParser {
|
|||||||
ActionEntry actionEntry;
|
ActionEntry actionEntry;
|
||||||
List<String> arguments;
|
List<String> arguments;
|
||||||
Matcher argumentMatcher;
|
Matcher argumentMatcher;
|
||||||
int blah = 0;
|
|
||||||
|
|
||||||
if (powerEntry.power_id.equals("ASS-BACKSTAB"))
|
|
||||||
blah = 1;
|
|
||||||
|
|
||||||
switch (key) {
|
switch (key) {
|
||||||
case "ACTION":
|
case "ACTION":
|
||||||
@@ -213,7 +209,12 @@ public class PowersParser {
|
|||||||
EquipmentPreReq equipmentPreReq = new EquipmentPreReq();
|
EquipmentPreReq equipmentPreReq = new EquipmentPreReq();
|
||||||
equipmentPreReq.slot = mbEnums.EquipSlotType.valueOf(argumentIterator.next());
|
equipmentPreReq.slot = mbEnums.EquipSlotType.valueOf(argumentIterator.next());
|
||||||
equipmentPreReq.skill = argumentIterator.next().replaceAll("\"", "");
|
equipmentPreReq.skill = argumentIterator.next().replaceAll("\"", "");
|
||||||
|
|
||||||
|
if (argumentIterator.hasNext())
|
||||||
equipmentPreReq.required = Integer.parseInt(argumentIterator.next());
|
equipmentPreReq.required = Integer.parseInt(argumentIterator.next());
|
||||||
|
else
|
||||||
|
equipmentPreReq.required = 0;
|
||||||
|
|
||||||
powerEntry.equipmentPreReq.add(equipmentPreReq);
|
powerEntry.equipmentPreReq.add(equipmentPreReq);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|||||||
Reference in New Issue
Block a user