Add items
This commit is contained in:
@@ -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 !");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user