diff --git a/.github/CHANGELOG.md b/.github/CHANGELOG.md index 39c2f8e1..565426ed 100644 --- a/.github/CHANGELOG.md +++ b/.github/CHANGELOG.md @@ -9,6 +9,12 @@ Happy gaming ! When not specified, all changes were made by @castanhocorreia, @HavlockV, and @snap01. +## Version 0.10.16 + +When not specified, all changes were made by @castanhocorreia, @HavlockV, and @snap01. + +- Fix melee resolution card on FoundryVTT v12 + ## Version 0.10.15 When not specified, all changes were made by @castanhocorreia, @HavlockV, and @snap01. diff --git a/module/chat.js b/module/chat.js index 4e20341d..e1ea374a 100644 --- a/module/chat.js +++ b/module/chat.js @@ -151,7 +151,7 @@ export class CoC7Chat { // if( chatMessage.getFlag( 'CoC7', 'reveled')){ // } - if (game.user.isGM && chatMessage.type === 0) { + if (game.user.isGM && (chatMessage.type === 0 /* // FoundryVTT v11 */ || chatMessage.style === 0 /* // FoundryVTT v12 */)) { const card = $(chatMessage.content)[0] if (card.classList.contains('melee')) { if (card.dataset.resolved === 'true') { diff --git a/system.json b/system.json index 0dc3201a..fe1490f1 100644 --- a/system.json +++ b/system.json @@ -2,7 +2,7 @@ "id": "CoC7", "title": "Call of Cthulhu 7th Edition", "description": "An implementation of the Call of Cthulhu 7th Edition game system for Foundry Virtual Tabletop.", - "version": "0.10.15", + "version": "0.10.16", "authors": [ { "name": "Miskatonic Investigative Society" @@ -151,5 +151,5 @@ "secondaryTokenAttribute": "attribs.san", "url": "https://github.com/Miskatonic-Investigative-Society/CoC7-FoundryVTT", "manifest": "https://github.com/Miskatonic-Investigative-Society/CoC7-FoundryVTT/releases/latest/download/system.json", - "download": "https://github.com/Miskatonic-Investigative-Society/CoC7-FoundryVTT/releases/download/0.10.15/system.zip" + "download": "https://github.com/Miskatonic-Investigative-Society/CoC7-FoundryVTT/releases/download/0.10.16/system.zip" }