FIX: Monster damages

master
U~man 2020-07-07 00:44:44 +02:00
parent bae803025e
commit c94807c9ae
2 changed files with 4 additions and 4 deletions

View File

@ -215,7 +215,7 @@ export class OseActor extends Actor {
};
let dmgParts = [];
if (!attData.dmg || !game.settings.get("ose", "variableWeaponDamage")) {
if ((!attData.dmg || !game.settings.get("ose", "variableWeaponDamage")) && this.type == "character") {
dmgParts.push("1d6");
} else {
dmgParts.push(attData.dmg);
@ -243,8 +243,8 @@ export class OseActor extends Actor {
const rollParts = ["1d20"];
const dmgParts = [];
if (!attData.dmg || !game.settings.get("ose", "variableWeaponDamage")) {
if ((!attData.dmg || !game.settings.get("ose", "variableWeaponDamage")) && this.type == "character") {
dmgParts.push("1d6");
} else {
dmgParts.push(attData.dmg);

View File

@ -57,7 +57,7 @@ export class OseItem extends Item {
} else if (this.data.data.melee && !isNPC) {
this.actor.rollAttack({type: 'melee', label: this.name, dmg: this.data.data.damage});
} else {
this.actor.rollAttack({type: 'raw', label: this.name});
this.actor.rollAttack({type: 'raw', label: this.name, dmg: this.data.data.damage});
}
return true;
}