forked from MagicBane/Server
Bugfix in enum usage
This commit is contained in:
@@ -399,23 +399,13 @@ public class WpakPowerManager {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public static boolean allowedInCombat(Power power) {
|
public static boolean allowedInCombat(Power power) {
|
||||||
switch (power.castingMode.name()) {
|
return power.castingMode.equals(mbEnums.CastingModeType.NONCOMBAT) == false;
|
||||||
case "NONE":
|
|
||||||
case "BOTH":
|
|
||||||
case "COMBAT":
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public static boolean allowedOutOfCombat(Power power) {
|
public static boolean allowedOutOfCombat(Power power) {
|
||||||
switch (power.castingMode.name()) {
|
|
||||||
case "NONE":
|
return power.castingMode.equals(mbEnums.CastingModeType.COMBAT) == false;
|
||||||
case "BOTH":
|
|
||||||
case "NONCOMBAT":
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public static Pair<Float, Float> getModifierValues(ModifierEntry modifierEntry, int rank) {
|
public static Pair<Float, Float> getModifierValues(ModifierEntry modifierEntry, int rank) {
|
||||||
|
|||||||
Reference in New Issue
Block a user