Changed from aura to attached. Added functionality to Elemental Aura

This commit is contained in:
WBHarry 2026-07-02 00:44:22 +02:00
parent e76df049d1
commit b860e7f1c0
4 changed files with 170 additions and 100 deletions

View file

@ -121,8 +121,8 @@ export const areaTypes = {
id: 'placed',
label: 'DAGGERHEART.CONFIG.AreaTypes.placed.label'
},
aura: {
id: 'aura',
label: 'DAGGERHEART.CONFIG.AreaTypes.aura.label'
attached: {
id: 'attached',
label: 'DAGGERHEART.CONFIG.AreaTypes.attached.label'
}
};

View file

@ -311,7 +311,7 @@ export default class DhpChatMessage extends foundry.documents.ChatMessage {
const placeRegion = data => {
canvas.regions.placeRegion(data, {
create: true,
attachToToken: selectedArea.type === CONFIG.DH.ACTIONS.areaTypes.aura.id
attachToToken: selectedArea.type === CONFIG.DH.ACTIONS.areaTypes.attached.id
});
};