@reldens/skills 0.12.0 → 0.12.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -67,12 +67,12 @@ class Attack extends Skill
67
67
  return false;
68
68
  }
69
69
  let affectedPropertyValue = this.getAffectedPropertyValue(target);
70
- if(!this.allowEffectBelowZero && 0 < affectedPropertyValue){
70
+ if(!this.allowEffectBelowZero && 0 >= affectedPropertyValue){
71
71
  return false;
72
72
  }
73
73
  // dodge proportion:
74
74
  let dodgeAimDiff = this.getDiffProportion(ownerAim, targetDodge);
75
- let damage = this.applyDirectDamage
75
+ let damage = this.applyDirectDamage
76
76
  ? this.hitDamage // 100%
77
77
  : this.calculateProportionDamage(target, this.hitDamage, targetDodge, ownerAim, dodgeAimDiff);
78
78
  // critical calculation:
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@reldens/skills",
3
3
  "scope": "@reldens",
4
- "version": "0.12.0",
4
+ "version": "0.12.1",
5
5
  "description": "Reldens - Skills",
6
6
  "author": "Damian A. Pastorini",
7
7
  "license": "MIT",