|
|
|
@ -165,24 +165,6 @@ public class EffectsParser {
@@ -165,24 +165,6 @@ public class EffectsParser {
|
|
|
|
|
effectModifier.type = mbEnums.ModType.valueOf(modValues.get(0).trim()); |
|
|
|
|
|
|
|
|
|
switch (effectModifier.type) { |
|
|
|
|
case BladeTrails: // No parm modifiers
|
|
|
|
|
case ImmuneToAttack: |
|
|
|
|
case ImmuneToPowers: |
|
|
|
|
case Ambidexterity: |
|
|
|
|
case Silenced: |
|
|
|
|
case IgnorePassiveDefense: |
|
|
|
|
case Stunned: |
|
|
|
|
case PowerCostHealth: |
|
|
|
|
case Charmed: |
|
|
|
|
case Fly: |
|
|
|
|
case CannotMove: |
|
|
|
|
case CannotTrack: |
|
|
|
|
case CannotAttack: |
|
|
|
|
case CannotCast: |
|
|
|
|
case SpireBlock: |
|
|
|
|
case Invisible: |
|
|
|
|
case SeeInvisible: |
|
|
|
|
break; |
|
|
|
|
case AnimOverride: |
|
|
|
|
effectModifier.min = Float.parseFloat(modValues.get(1).trim()); |
|
|
|
|
effectModifier.max = Float.parseFloat(modValues.get(2).trim()); |
|
|
|
@ -267,6 +249,24 @@ public class EffectsParser {
@@ -267,6 +249,24 @@ public class EffectsParser {
|
|
|
|
|
effectModifier.arg1 = modValues.get(2).trim(); |
|
|
|
|
effectModifier.max = Float.parseFloat(modValues.get(3).trim()); |
|
|
|
|
break; |
|
|
|
|
case BladeTrails: // These tags have no parms or are not parsed
|
|
|
|
|
case ImmuneToAttack: |
|
|
|
|
case ImmuneToPowers: |
|
|
|
|
case Ambidexterity: |
|
|
|
|
case Silenced: |
|
|
|
|
case IgnorePassiveDefense: |
|
|
|
|
case Stunned: |
|
|
|
|
case PowerCostHealth: |
|
|
|
|
case Charmed: |
|
|
|
|
case Fly: |
|
|
|
|
case CannotMove: |
|
|
|
|
case CannotTrack: |
|
|
|
|
case CannotAttack: |
|
|
|
|
case CannotCast: |
|
|
|
|
case SpireBlock: |
|
|
|
|
case Invisible: |
|
|
|
|
case SeeInvisible: |
|
|
|
|
break; |
|
|
|
|
default: |
|
|
|
|
Logger.error("Unhandled type: " + effectModifier.type); |
|
|
|
|
break; |
|
|
|
|