Merge branch 'spelling' into 'master'

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

See merge request LeRatierBretonnien/foundryvtt-shadows-over-sol!5
This commit is contained in:
Leratier Bretonnien 2021-02-27 07:41:07 +00:00
commit 809ad8c642

View File

@ -263,7 +263,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';