GM Toolbox : Left clic do only actors with an active player as owner.
This commit is contained in:
@@ -278,6 +278,14 @@ export class ActorL5r5e extends Actor {
|
||||
return this.type === "army";
|
||||
}
|
||||
|
||||
/**
|
||||
* Return true if this actor have an active player as owner
|
||||
* @returns {boolean}
|
||||
*/
|
||||
get hasPlayerOwnerActive() {
|
||||
return game.users.find((u) => !!u.active && u.character?.id === this.id);
|
||||
}
|
||||
|
||||
/**
|
||||
* Return true if this actor can do a initiative roll
|
||||
* @returns {boolean}
|
||||
|
||||
Reference in New Issue
Block a user