Fix détérioration armure

This commit is contained in:
Vincent Vandemeulebrouck 2021-01-06 16:25:29 +01:00
parent f2a99bc2f0
commit 8000ee4156

View File

@ -2024,7 +2024,7 @@ export class RdDActor extends Actor {
dmg = 0; // Reset it
if ( update.data.deterioration >= 10) {
update.data.deterioration = 0;
let res = /\d+^/.exec(update.data.protection);
let res = /\d+/.exec(update.data.protection);
if ( res )
update.data.protection = "1d"+update.data.protection;
// if ( update.data.protection.toString().length == 1 )