j!1eaWpTRkCSUUy1YhfiXM3vSuByrA4yriAMÌmodule.exports = async function(context, dice) {
const attacker = context.players[context.playerToAct];
const defender = context.players[context.playerToAct ? 0 : 1];
defender.hp -= 26;
context.actionLog = [{
hand: 0,
attackMod: 1,
damageMod: 1,
attackRolls: {
attackRoll: 15,
damageRoll: 2,
criticalRoll: 5
},
attackStatus: 1,
damageOutput: {
damage: [ 0, 25, 0, 0, 0, 0, 0, 0, 0, 0 ],
defenderReduction: [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ],
defenderHp: defender.hp
},
playerToAct : context.playerToAct
}];
return context;
}
https://whatsonchain.com/tx/82dda8e49ec7432acbf0fe870d07e659b0ffcdf4e2f8bc04f03342ce1cbfa91d