Starfinder conditions fix
This commit is contained in:
@@ -130,8 +130,8 @@ export class starfinder{
|
|||||||
await effect.delete();
|
await effect.delete();
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
const effect = CONFIG.statusEffects.find(e => e.id === condition);
|
if (this.getConditionActive(token,condition)) token.actor.setCondition(condition,false);
|
||||||
await token.toggleEffect(effect);
|
else token.actor.setCondition(condition,true);
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user