From 3ca33e85b793f278c6e74a973f27f23a5388407f Mon Sep 17 00:00:00 2001 From: Vincent Vandemeulebrouck Date: Sat, 11 Nov 2023 13:43:10 +0100 Subject: [PATCH] =?UTF-8?q?Fix=20case=20pour=20r=C3=A9serve=20extensible?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- module/tmr/reserve-extensible.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/module/tmr/reserve-extensible.js b/module/tmr/reserve-extensible.js index f5d11211..ce0d8dab 100644 --- a/module/tmr/reserve-extensible.js +++ b/module/tmr/reserve-extensible.js @@ -13,8 +13,8 @@ export class ReserveExtensible extends Draconique { manualMessage() { return "Vous pouvez re-configurer votre Réserve extensible" } async onActorCreateOwned(actor, tete) { const existants = actor.items.filter(it => this.isCase(it)).map(it => it.system.coord); - const tmr = await TMRUtility.getTMRAleatoire(it => !(it.type == 'fleuve' || existants.includes(it.system.coord))); - await this.createCaseTmr(actor, "Nouvelle Réserve extensible", tmr, tete.id); + const selectedTMR = await TMRUtility.getTMRAleatoire(tmr => !(tmr.type == 'fleuve' || existants.includes(tmr.coord))); + await this.createCaseTmr(actor, "Nouvelle Réserve extensible", selectedTMR, tete.id); } code() { return 'reserve_extensible' }