diff --git a/src/module/dialog/spellDialog.mjs b/src/module/dialog/spellDialog.mjs
index 6e1f2a42..c95d9fa5 100644
--- a/src/module/dialog/spellDialog.mjs
+++ b/src/module/dialog/spellDialog.mjs
@@ -211,7 +211,7 @@ export class SpellDialog extends HandlebarsApplicationMixin(ApplicationV2) {
})
}
- let message = this._spell.system.wirkung
+ let message = `${this._spell.name}
${this._spell.system.wirkung} `
if (this._activeVariants?.length > 0 ?? false) {
message += "
"
message += this._activeVariants.map(v => v.name).join(", ")
@@ -232,12 +232,19 @@ export class SpellDialog extends HandlebarsApplicationMixin(ApplicationV2) {
})
}
- message += `Kosten: [[/roll ${this.cost}]]{${this.cost}}`
- //TODO: get complex key from cost
-
-
+ if (this.cost) {
+ message += `Kosten: [[/roll ${this.cost}]]{${this.cost}}`
+ } else {
+ if (this._costModel.complex) {
+ message += `Kosten: ${this._costModel.complex}`
+ }
+ }
message += "
" + this.zfp + " ZfP*
" + this._spell.system.zfw + " ZfW"
+ if (Number.isNaN(this.castingTime)) {
+ this.castingTime = 0
+ }
+
let currentCooldown = 0
if (game.combats.size === 0) { // no combat started
currentCooldown = this.castingTime
@@ -635,6 +642,7 @@ export class SpellDialog extends HandlebarsApplicationMixin(ApplicationV2) {
context.notReadyReasons += `${game.i18n.format("SPELL_DIALOG.notReadyReason.tooManySpoMods")}`
}
if (!this._selectedRepresentation) {
+ context.noSelectedRepresentation = true
context.notReadyReasons += `${game.i18n.format("SPELL_DIALOG.notReadyReason.noRepresentation")}`
}
context.notReadyReasons += ""
diff --git a/src/templates/dialog/spell-dialog.hbs b/src/templates/dialog/spell-dialog.hbs
index f5e3d88a..1fdcaad1 100644
--- a/src/templates/dialog/spell-dialog.hbs
+++ b/src/templates/dialog/spell-dialog.hbs
@@ -63,15 +63,15 @@
{{/if}}
-