@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.
- package/lib/types/attack.js +2 -2
- package/package.json +1 -1
package/lib/types/attack.js
CHANGED
|
@@ -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
|
|
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:
|