forked from public/bol
Init again !!!!
This commit is contained in:
@ -648,14 +648,16 @@ export class BoLActor extends Actor {
|
||||
}
|
||||
|
||||
/*-------------------------------------------- */
|
||||
registerInit(rollData) {
|
||||
async registerInit(rollData) {
|
||||
rollData.actor = undefined // Cleanup if present
|
||||
this.setFlag("world", "last-initiative", rollData)
|
||||
await this.setFlag("world", "last-initiative", rollData)
|
||||
}
|
||||
|
||||
/*-------------------------------------------- */
|
||||
getInitiativeRank() {
|
||||
let rollData = this.getFlag("world", "last-initiative")
|
||||
getInitiativeRank(rollData = undefined) {
|
||||
if (!rollData) {
|
||||
rollData = this.getFlag("world", "last-initiative")
|
||||
}
|
||||
let fvttInit = 4 // Pietaille par defaut
|
||||
if (this.type == 'character' ) {
|
||||
fvttInit = 5
|
||||
|
Reference in New Issue
Block a user