Skip to content

Commit

Permalink
Merge pull request #965 from Aeristoka/fvtt-v10-chatmessage
Browse files Browse the repository at this point in the history
Potential Fix for FVTT 10 Chat Message Rolls
  • Loading branch information
kakaroto committed Apr 13, 2022
2 parents 1828da1 + 281f5a2 commit 4b5ebab
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/fvtt/page-script.js
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,9 @@ class FVTTDisplayer {
}
return Roll.fromData(r)
});
if (isNewerVersion(fvttVersion, "0.8")) {
if (isNewerVersion(fvttVersion, "10")) {
data.rolls = fvttRolls;
} else if (isNewerVersion(fvttVersion, "0.8")) {
// Foundry 0.8.x API
// This will accept backware compatible fvttRolls format
const pool = PoolTerm.fromRolls(fvttRolls);
Expand Down

0 comments on commit 4b5ebab

Please sign in to comment.