Compare commits

..

No commits in common. "85403fbc0af018d8b43aeec32c651554b844c715" and "e4779b14a25fd1b29547732cf68b9ed743a1f887" have entirely different histories.

4 changed files with 2 additions and 15 deletions

View File

@ -35,7 +35,6 @@ export class CombatActionDialog extends HandlebarsApplicationMixin(ApplicationV2
selectTarget: CombatActionDialog.#onSelectTarget,
selectWeaponAndSkill: CombatActionDialog.#onSelectWeaponAndSkill,
selectManeuver: CombatActionDialog.#onSelectManeuver,
attack: CombatActionDialog.#onAttack
}
}
@ -166,12 +165,6 @@ export class CombatActionDialog extends HandlebarsApplicationMixin(ApplicationV2
event.preventDefault()
CombatActionDialog._instance.#processOnSubmitForm(event, form, formData)
this.close()
}
static async #onAttack(event, target) {
CombatActionDialog._instance.#processOnSubmitForm(event, this.element, new FormData(this.element))
this.close()
}
_configureRenderOptions(options) {

View File

@ -34,7 +34,6 @@ export class DefenseActionDialog extends HandlebarsApplicationMixin(ApplicationV
actions: {
selectWeaponAndSkill: DefenseActionDialog.#onSelectWeaponAndSkill,
selectManeuver: DefenseActionDialog.#onSelectManeuver,
defend: DefenseActionDialog.#onDefend,
}
}
@ -103,11 +102,6 @@ export class DefenseActionDialog extends HandlebarsApplicationMixin(ApplicationV
targetNumber: this._targetNumber,
modDescription: maneuver?.modDescription?.replace("{}", "" + this._mod) ?? ""
})
this.close()
}
static async #onDefend(event, target) {
this.element.submit()
}
_configureRenderOptions(options) {

View File

@ -57,7 +57,7 @@
<div class="actions">
<button type="button" data-action="attack" {{#if ready}}class="ready" {{else}}data-tooltip="{{notReadyReason}}"{{/if}}><i
<button type="button" {{#if ready}}class="ready" {{else}}data-tooltip="{{notReadyReason}}"{{/if}} type="submit"><i
class="fa-solid fa-swords"></i>Angreifen <span
class="value"></span></button>
</div>

View File

@ -43,7 +43,7 @@
<div class="actions">
<button type="button" data-action="defend" {{#if ready}}class="ready" {{else}}data-tooltip="{{notReadyReason}}"{{/if}}><i
<button type="button" {{#if ready}}class="ready" {{else}}data-tooltip="{{notReadyReason}}"{{/if}} type="submit"><i
class="fa-solid fa-shield"></i>Verteidigen <span
class="value"></span></button>
</div>