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) {
|
||||
switch (power.castingMode.name()) {
|
||||
case "NONE":
|
||||
case "BOTH":
|
||||
case "COMBAT":
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
return power.castingMode.equals(mbEnums.CastingModeType.NONCOMBAT) == false;
|
||||
}
|
||||
|
||||
public static boolean allowedOutOfCombat(Power power) {
|
||||
switch (power.castingMode.name()) {
|
||||
case "NONE":
|
||||
case "BOTH":
|
||||
case "NONCOMBAT":
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
|
||||
return power.castingMode.equals(mbEnums.CastingModeType.COMBAT) == false;
|
||||
|
||||
}
|
||||
|
||||
public static Pair<Float, Float> getModifierValues(ModifierEntry modifierEntry, int rank) {
|
||||
|
||||
Reference in New Issue
Block a user