Bug/fixed character attack (#192)

* Fixed weapon useage in Character

* Added DHContextMenu to pass on the event from clicking a contextmenuitem
This commit is contained in:
WBHarry 2025-06-28 14:00:53 +02:00 committed by GitHub
parent e3b9dcad2a
commit 1f5b5f9915
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 40 additions and 15 deletions

View file

@ -48,8 +48,8 @@ class Countdowns extends HandlebarsApplicationMixin(ApplicationV2) {
super._attachPartListeners(partId, htmlElement, options);
htmlElement.querySelectorAll('.mini-countdown-container').forEach(element => {
element.addEventListener('click', event => this.updateCountdownValue.bind(this)(event, true));
element.addEventListener('contextmenu', event => this.updateCountdownValue.bind(this)(event, false));
element.addEventListener('click', event => this.updateCountdownValue.bind(this)(event, false));
element.addEventListener('contextmenu', event => this.updateCountdownValue.bind(this)(event, true));
});
}