forked from public/foundryvtt-reve-de-dragon
Fix: automatisations de combat
This commit is contained in:
@ -14,13 +14,14 @@ export class Targets {
|
||||
return {
|
||||
id: target?.id,
|
||||
name: target?.document.name,
|
||||
img: target?.document.texture.src ?? target?.actor.img ?? 'icons/svg/mystery-man.svg',
|
||||
target
|
||||
};
|
||||
img: target?.document.texture.src ?? target?.actor.img ?? 'icons/svg/mystery-man.svg'
|
||||
}
|
||||
}
|
||||
|
||||
static buildActorTokenData(tokenId, actor) {
|
||||
return { id: tokenId, name: actor.name, img: actor.img ?? 'icons/svg/mystery-man.svg' };
|
||||
}
|
||||
|
||||
static isTargetEntite(target) {
|
||||
return target?.actor.type == 'entite' && target?.actor.system.definition.typeentite == ENTITE_NONINCARNE;
|
||||
}
|
||||
|
Reference in New Issue
Block a user