diff --git a/CHANGELOG.md b/CHANGELOG.md index 7545909..8ea8aba 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## 1.6.1 - Bugfix +- PC sheet : fixed the "Complete this rank" button who stayed hidden in experience tab. +- GmMonitor : fixed a bug with render when the list was emptied. +- Combat : fixed a null error when sometimes the combatant actor is null. + ## 1.6.0 - QoL & SoftLock - PC/NPC/Armies sheet: - Added SoftLock functionality. diff --git a/system/scripts/combat.js b/system/scripts/combat.js index 452e193..8ce70d5 100644 --- a/system/scripts/combat.js +++ b/system/scripts/combat.js @@ -142,14 +142,14 @@ export class CombatL5r5e extends Combat { * @private */ _sortCombatants(a, b) { - // if tie, sort by honor, less honorable first + // if tie : sort by honor, less honorable first if (a.initiative === b.initiative) { - // skip if armies - if (a.actor.data.type === "army" || b.actor.data.type === "army") { + // skip if no actor or if armies + if (!a.actor || !b.actor || a.actor.data.type === "army" || b.actor.data.type === "army") { return 0; } - // if tie, Character > Adversary > Minion + // if tie again : Character > Adversary > Minion if (a.actor.data.data.social.honor === b.actor.data.data.social.honor) { return ( CombatL5r5e._getWeightByActorType(a.actor.data) - CombatL5r5e._getWeightByActorType(b.actor.data) diff --git a/system/scripts/gm/gm-monitor.js b/system/scripts/gm/gm-monitor.js index 84d60fa..4971576 100644 --- a/system/scripts/gm/gm-monitor.js +++ b/system/scripts/gm/gm-monitor.js @@ -330,6 +330,7 @@ export class GmMonitor extends FormApplication { } if (!foundry.utils.isObjectEmpty(updateData)) { await actor.update(updateData); + this.render(false); } } diff --git a/system/templates/actors/character/experience.html b/system/templates/actors/character/experience.html index e0fc106..4575246 100644 --- a/system/templates/actors/character/experience.html +++ b/system/templates/actors/character/experience.html @@ -55,7 +55,7 @@