Fixed a bug introduced by DiceSoNice 4.2.1
This commit is contained in:
@@ -8,6 +8,9 @@
|
|||||||
- Compendiums :
|
- Compendiums :
|
||||||
- PoW: 'Urbane and Worldly' advantage was misspelled 'Wroldly' (thx to Cernunnos).
|
- PoW: 'Urbane and Worldly' advantage was misspelled 'Wroldly' (thx to Cernunnos).
|
||||||
|
|
||||||
|
## 1.3.5 - DsN hotfix
|
||||||
|
- Fixed a bug introduced by DiceSoNice 4.2.1 : context in "diceSoNiceRollStart" hook rebuild data and lost what we needed. The consequence is 3d dice flood a lot in RnK.
|
||||||
|
|
||||||
## 1.3.4 - Compendiums Update
|
## 1.3.4 - Compendiums Update
|
||||||
- Fixed a bug with sheet item drop introduced in previous version.
|
- Fixed a bug with sheet item drop introduced in previous version.
|
||||||
- Added FoV English Opportunities usage.
|
- Added FoV English Opportunities usage.
|
||||||
|
|||||||
@@ -259,7 +259,10 @@ export default class HooksL5r5e {
|
|||||||
* @param {object} context
|
* @param {object} context
|
||||||
*/
|
*/
|
||||||
static diceSoNiceRollStart(messageId, context) {
|
static diceSoNiceRollStart(messageId, context) {
|
||||||
if (context.roll.l5r5e?.history) {
|
// In DsN 4.2.1+ the roll is altered in context.
|
||||||
|
// So we need to get the original message instead of "context.roll.l5r5e?.history"
|
||||||
|
const message = game.messages.get(messageId);
|
||||||
|
if (message?._roll?.l5r5e?.history) {
|
||||||
context.blind = true;
|
context.blind = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user