scripts/opposed-wng.js
// Update starting mesasge with result - manual opposed
Update starting mesasge with result - manual opposed
Update starting mesasge with result - manual opposed
static updateOpposedMessage(damageConfirmation, msgId)
  {
    let opposeMessage = game.messages.get(msgId)
    let newCard = {
      user: game.user.id,
      hideData: true,
      content: $(opposeMessage.data.content).append(`<div>${damageConfirmation}</div>`).html()
    }
    opposeMessage.update(newCard).then(resultMsg =>
    {
      ui.chat.updateMessage(resultMsg)
    })
  }
static updateOpposedMessage ( damageConfirmation , msgId ) { let opposeMessage = game . messages . get ( msgId ) let newCard = { user : game . user . id , hideData : true , content : $ ( opposeMessage . data . content ) . append ( ` ${ damageConfirmation } ` ) . html ( ) } opposeMessage . update ( newCard ) . then ( resultMsg => { ui . chat . updateMessage ( resultMsg ) } ) }
Update starting mesasge with result - manual opposed
Update starting mesasge with result - manual opposed