forked from public/foundryvtt-reve-de-dragon
Fix: les TMRs sont en arrière plan
This commit is contained in:
@ -34,6 +34,7 @@ export class RdDTMRRencontreDialog extends Dialog {
|
||||
|
||||
async onButtonAction(action) {
|
||||
this.toClose = true;
|
||||
await this.actor.tmrApp?.restoreTMRAfterAction();
|
||||
this.actor.tmrApp?.onActionRencontre(action, this.tmr, this.rencontre)
|
||||
}
|
||||
|
||||
@ -41,7 +42,6 @@ export class RdDTMRRencontreDialog extends Dialog {
|
||||
async close() {
|
||||
if (this.actor.tmrApp){
|
||||
if (this.toClose) {
|
||||
this.actor.tmrApp?.restoreTMRAfterAction();
|
||||
return await super.close();
|
||||
}
|
||||
else {
|
||||
|
Reference in New Issue
Block a user