Fix #102 agitator neutral

This commit is contained in:
sladecraven 2022-10-06 12:25:15 +02:00
parent f4a8aa7927
commit 8ddc3ad776

View File

@ -1210,9 +1210,6 @@ export class PegasusUtility {
let agitatorTokens = canvas.tokens.placeables.filter(token => token.actor.isAgitator() && !token.document.hidden) let agitatorTokens = canvas.tokens.placeables.filter(token => token.actor.isAgitator() && !token.document.hidden)
for (let token of agitatorTokens) { for (let token of agitatorTokens) {
token.refresh() token.refresh()
if (token.document.disposition == 0) {
continue
}
let ennemies = [] let ennemies = []
if (token.document.disposition == -1) { if (token.document.disposition == -1) {
ennemies = canvas.tokens.placeables.filter(newToken => newToken.actor.type == "character" && !newToken.document.hidden && (newToken.document.disposition == 1 || newToken.document.disposition == 0 )) ennemies = canvas.tokens.placeables.filter(newToken => newToken.actor.type == "character" && !newToken.document.hidden && (newToken.document.disposition == 1 || newToken.document.disposition == 0 ))