FoundryDevelopmentConsortium / Knowledge-Recalled-PF2e-FVTT

Creative Commons Zero v1.0 Universal
0 stars 3 forks source link

Fixed updateNPCModelFlags #14

Closed AlecHolloway closed 1 year ago

AlecHolloway commented 1 year ago

This will need to be reviewed.

checkForChangesOnUpdate(actor) function was indirectly triggering the update hook due to the call to this.actor.setFlag(). Each time the flags were updated, it triggered an update to the actor, which in turn called the updateNPCModelFlags(actor) function, creating an infinite loop.