forked from MagicBane/Server
More poweraction parsing work.
This commit is contained in:
@@ -225,7 +225,9 @@ public class PowerActionParser {
|
|||||||
case "LEVELCAP":
|
case "LEVELCAP":
|
||||||
arguments = lineValues[1].trim().split("\\s+");
|
arguments = lineValues[1].trim().split("\\s+");
|
||||||
powerActionEntry.levelCap = Integer.parseInt(arguments[0]);
|
powerActionEntry.levelCap = Integer.parseInt(arguments[0]);
|
||||||
powerActionEntry.levelCurve = mbEnums.CompoundCurveType.valueOf(arguments[1]);
|
|
||||||
|
if (arguments.length > 1) // Not all level caps have a curve
|
||||||
|
powerActionEntry.levelCurve = mbEnums.CompoundCurveType.valueOf(arguments[1]);
|
||||||
break;
|
break;
|
||||||
case "CLEARAGGRO":
|
case "CLEARAGGRO":
|
||||||
powerActionEntry.clearAggro = Boolean.parseBoolean(lineValues[1].trim());
|
powerActionEntry.clearAggro = Boolean.parseBoolean(lineValues[1].trim());
|
||||||
|
|||||||
Reference in New Issue
Block a user