Added props in actor object : isCharacter, isAdversary, isMinion, isArmy, canDoInitiativeRoll
Minion ignore now the DP in init roll
This commit is contained in:
@@ -197,12 +197,12 @@ export class GmToolbox extends FormApplication {
|
||||
|
||||
for await (const actor of game.actors.contents) {
|
||||
// Only characters types
|
||||
if (!actor.isCharacter) {
|
||||
if (!actor.isCharacterType) {
|
||||
continue;
|
||||
}
|
||||
|
||||
// Manage left/right button
|
||||
if (!isAll && (actor.type !== "character" || !actor.hasPlayerOwner)) {
|
||||
if (!isAll && (!actor.isCharacter || !actor.hasPlayerOwner)) {
|
||||
continue;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user