forked from public/bol
Fix d6BB combat roll
This commit is contained in:
parent
d27b78d1d2
commit
8f60aa95ee
@ -564,6 +564,7 @@ export class BoLDefaultRoll {
|
|||||||
speaker: ChatMessage.getSpeaker({ actor: actor }),
|
speaker: ChatMessage.getSpeaker({ actor: actor }),
|
||||||
flags: { msgType: "default" }
|
flags: { msgType: "default" }
|
||||||
})
|
})
|
||||||
|
this.rollData.actor = undefined // Cleanup
|
||||||
msg.setFlag("world", "bol-roll-data", this.rollData)
|
msg.setFlag("world", "bol-roll-data", this.rollData)
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
@ -484,11 +484,21 @@ export class BoLUtility {
|
|||||||
nbDice++
|
nbDice++
|
||||||
modIndex = 4
|
modIndex = 4
|
||||||
}
|
}
|
||||||
|
if (res[3] == 'MM') {
|
||||||
|
postForm = 'kl' + nbDice
|
||||||
|
nbDice += 2
|
||||||
|
modIndex = 4
|
||||||
|
}
|
||||||
if (res[3] == 'B') {
|
if (res[3] == 'B') {
|
||||||
postForm = 'kh' + nbDice
|
postForm = 'kh' + nbDice
|
||||||
nbDice++
|
nbDice++
|
||||||
modIndex = 4
|
modIndex = 4
|
||||||
}
|
}
|
||||||
|
if (res[3] == 'BB') {
|
||||||
|
postForm = 'kh' + nbDice
|
||||||
|
nbDice += 2
|
||||||
|
modIndex = 4
|
||||||
|
}
|
||||||
}
|
}
|
||||||
formula = "(" + nbDice + "d" + res[2] + reroll + postForm + "+" + modifier + ") *" + multiplier
|
formula = "(" + nbDice + "d" + res[2] + reroll + postForm + "+" + modifier + ") *" + multiplier
|
||||||
}
|
}
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
"url": "https://www.uberwald.me/gitea/public/bol",
|
"url": "https://www.uberwald.me/gitea/public/bol",
|
||||||
"license": "LICENSE.txt",
|
"license": "LICENSE.txt",
|
||||||
"flags": {},
|
"flags": {},
|
||||||
"version": "1.5.0",
|
"version": "1.5.1",
|
||||||
"templateVersion": 10,
|
"templateVersion": 10,
|
||||||
"minimumCoreVersion": "0.8.6",
|
"minimumCoreVersion": "0.8.6",
|
||||||
"compatibleCoreVersion": "9",
|
"compatibleCoreVersion": "9",
|
||||||
|
Loading…
Reference in New Issue
Block a user