FIX: Monster damages
parent
bae803025e
commit
c94807c9ae
|
|
@ -215,7 +215,7 @@ export class OseActor extends Actor {
|
||||||
};
|
};
|
||||||
|
|
||||||
let dmgParts = [];
|
let dmgParts = [];
|
||||||
if (!attData.dmg || !game.settings.get("ose", "variableWeaponDamage")) {
|
if ((!attData.dmg || !game.settings.get("ose", "variableWeaponDamage")) && this.type == "character") {
|
||||||
dmgParts.push("1d6");
|
dmgParts.push("1d6");
|
||||||
} else {
|
} else {
|
||||||
dmgParts.push(attData.dmg);
|
dmgParts.push(attData.dmg);
|
||||||
|
|
@ -243,8 +243,8 @@ export class OseActor extends Actor {
|
||||||
|
|
||||||
const rollParts = ["1d20"];
|
const rollParts = ["1d20"];
|
||||||
const dmgParts = [];
|
const dmgParts = [];
|
||||||
|
|
||||||
if (!attData.dmg || !game.settings.get("ose", "variableWeaponDamage")) {
|
if ((!attData.dmg || !game.settings.get("ose", "variableWeaponDamage")) && this.type == "character") {
|
||||||
dmgParts.push("1d6");
|
dmgParts.push("1d6");
|
||||||
} else {
|
} else {
|
||||||
dmgParts.push(attData.dmg);
|
dmgParts.push(attData.dmg);
|
||||||
|
|
|
||||||
|
|
@ -57,7 +57,7 @@ export class OseItem extends Item {
|
||||||
} else if (this.data.data.melee && !isNPC) {
|
} else if (this.data.data.melee && !isNPC) {
|
||||||
this.actor.rollAttack({type: 'melee', label: this.name, dmg: this.data.data.damage});
|
this.actor.rollAttack({type: 'melee', label: this.name, dmg: this.data.data.damage});
|
||||||
} else {
|
} else {
|
||||||
this.actor.rollAttack({type: 'raw', label: this.name});
|
this.actor.rollAttack({type: 'raw', label: this.name, dmg: this.data.data.damage});
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue