forked from MagicBane/Server
blocked power type structuring
This commit is contained in:
@@ -831,16 +831,22 @@ public class mbEnums {
|
||||
SPIRES,
|
||||
SNARE,
|
||||
STUN,
|
||||
BLIND,
|
||||
BLINDNESS,
|
||||
ROOT,
|
||||
FEAR,
|
||||
CHARM,
|
||||
POWERBLOCK,
|
||||
POWERINHIBITOR,
|
||||
DEBUFF,
|
||||
STEAL,
|
||||
DRAIN;
|
||||
|
||||
public static DamageType getDamageType(String modName) {
|
||||
if(modName.toLowerCase().equals("blind"))
|
||||
modName = "BLINDNESS";
|
||||
|
||||
if(modName.toLowerCase().equals("powerblock"))
|
||||
modName = "POWERINHIBITOR";
|
||||
|
||||
DamageType damageType;
|
||||
if (modName.isEmpty())
|
||||
return DamageType.NONE;
|
||||
|
||||
Reference in New Issue
Block a user