Fixed a bug where if shock is erroneously set to 0, script loops forever #14

Merged
tmtabor merged 1 commits from spelling into master 2021-02-27 08:41:08 +01:00

View File

@ -233,7 +233,7 @@ export class SoSUtility extends Entity {
} }
let dr = flipData.target.actor.data.data.scores.dr.value; let dr = flipData.target.actor.data.data.scores.dr.value;
let shock = flipData.target.actor.data.data.scores.shock.value; let shock = flipData.target.actor.data.data.scores.shock.value || 1;
let defenseCritical = flipData.target.actor.data.data.scores.defense.critical; let defenseCritical = flipData.target.actor.data.data.scores.defense.critical;
flipData.damageStatus = 'apply_damage'; flipData.damageStatus = 'apply_damage';