Minor fixes
This commit is contained in:
@ -858,7 +858,8 @@ export class PegasusActor extends Actor {
|
||||
|
||||
if (item.data.data.status == status) return;// Ensure we are really changing the status
|
||||
if (this.checkNoPerksAllowed() ) {
|
||||
ChatMessage( {content: "No perks activation allowed due to effect !"})
|
||||
await this.updateEmbeddedDocuments('Item', [{ _id: item.id, 'data.status': "ready" }])
|
||||
ChatMessage.create( {content: "No perks activation allowed due to effect !"})
|
||||
return
|
||||
}
|
||||
|
||||
@ -908,7 +909,7 @@ export class PegasusActor extends Actor {
|
||||
}
|
||||
this.disableWeaverPerk(item)
|
||||
PegasusUtility.createChatWithRollMode(item.name, {
|
||||
content: await renderTemplate(`systems/fvtt-pegasus-rpg/templates/chat-perk-ready.html`, { name: this.name, perk: item })
|
||||
content: await renderTemplate(`systems/fvtt-pegasus-rpg/templates/chat-perk-ready.html`, { name: this.name, perk: duplicate(item) })
|
||||
})
|
||||
}
|
||||
if (status == "activated") {
|
||||
@ -954,7 +955,7 @@ export class PegasusActor extends Actor {
|
||||
await this.update({ 'data.nrg': nrg })
|
||||
}
|
||||
PegasusUtility.createChatWithRollMode(item.name, {
|
||||
content: await renderTemplate(`systems/fvtt-pegasus-rpg/templates/chat-perk-activated.html`, { name: this.name, perk: item })
|
||||
content: await renderTemplate(`systems/fvtt-pegasus-rpg/templates/chat-perk-activated.html`, { name: this.name, perk: duplicate(item) })
|
||||
})
|
||||
this.enableWeaverPerk(item)
|
||||
}
|
||||
@ -1387,7 +1388,7 @@ export class PegasusActor extends Actor {
|
||||
if (effect.data.effectstatlevel) {
|
||||
effect.data.effectlevel = this.data.data.statistics[effect.data.effectstat].value
|
||||
}
|
||||
if (this.getTraumaState() == "none") {
|
||||
if (this.getTraumaState() == "none" && !this.checkNoBonusDice()) {
|
||||
rollData.effectsList.push({ label: effect.name, type: "effect", applied: false, effect: effect, value: effect.data.effectlevel })
|
||||
} else {
|
||||
if (!effect.data.bonusdice) { // Do not push bonus dice effect when TraumaState is activated
|
||||
|
Reference in New Issue
Block a user