Angriffe, Zauber & Merkmale

Bug fix: Zauber konnten nicht Sortiert werden
This commit was merged in pull request #44.
This commit is contained in:
Byroks authored and Byroks committed 2026-11-02 15:41:55 +01:00
1 parent ec33ccb381
commit 5f02f5ba83
17 files changed
+451 -638

No files matched your search

+7 -5
View File
@@ -46,18 +46,21 @@ export class M6ActorSheet extends api.HandlebarsApplicationMixin(sheets.ActorShe
_attachPartListeners(partId, html, bubble) {
super._attachPartListeners(partId, html, bubble);
const collapsible = html.querySelectorAll("div[data-action=collapsible]");
const collapsible = html.querySelectorAll("[data-action=collapsible]");
if (collapsible) {
collapsible.forEach((node) => {
node.addEventListener(
"click",
function (e) {
e = window.event || e;
if (this === e.target) {
node.classList.toggle("active");
var content = node.nextElementSibling;
const header = node.closest("div[data-action=collapsible]");
header.classList.toggle("active");
const content = header.nextElementSibling;
content.classList.toggle("active");
node.getElementsByTagName("i")[0].classList.toggle("fa-compress");
const icon = node.closest(".fa-expand") || node.getElementsByTagName("i")[0];
icon.classList.toggle("fa-compress");
}
},
{ capture: true },
@@ -508,7 +511,6 @@ export class M6ActorSheet extends api.HandlebarsApplicationMixin(sheets.ActorShe
*/
async _onDropItem(event, data) {
if (!this.actor.isOwner) return false;
if (this.actor.items.get(data.itemId)) return this._onSortItem(event, data);
const item = await Item.implementation.fromDropData(data);