Add items

This commit is contained in:
2021-02-17 22:38:12 +01:00
parent f57e5030c5
commit 64ef6e3c67
4 changed files with 23 additions and 16 deletions

View File

@@ -77,12 +77,9 @@ export class SoSDialogCombatActions extends Dialog {
let combat = game.combats.get( this.combatActions.combatId ); // Get the associated combat
combat.setupActorActions( msgdata );
} else {
game.socket.emit("system.foundryvtt-reve-de-dragon", {
game.socket.emit("system.foundryvtt-shadows-over-sol", {
name: "msg_declare_actions", data: msgdata } );
}
// Delete message !
const toDelete = game.messages.filter(it => it.data.content.includes( this.combatActions.uniqId ));
toDelete.forEach(it => it.delete());
} else {
ui.notifications.warn("Action Points are below 0 ! Please check your phases !");
}