Settings

Blockchain
Network
Unit
Language
Theme
Sound New Block

Transaction

a477a9f06ff0c79274ee7e457353e497a04d1129d7eccc0204f988614ee3d198
Timestamp (utc)
2021-05-14 19:25:41
Fee Paid
0.00001657 BSV
(
0.00673931 BSV
-
0.00672274 BSV
)
Fee Rate
523.3 sat/KB
Version
1
Confirmations
305,211
Size Stats
3,164 B

3 Outputs

Total Output:
0.00672274 BSV
  • jrun cryptofightsMX {"in":0,"ref":["9703e65726f347916f64a50d59be1edc3675ba0eddd3f2ae24f8bf0c6df926f5_o1","13c8f8d93e8dacaf8cf1331523cd2e11b7cda4f53f0935da08dc376499977094_o1","0388093d0fbe67cbf69791185954954519e087750836a38c57b5041ca4e032a9_o1"],"out":["ad8588ba925e764a9bca1d59e8fb61ba908a82367d553f3cc86d4c036bdb242c"],"del":[],"cre":["n2Bd4cWhEQK1aVjb1R7EBGV9mrw3etvSdC"],"exec":[{"op":"DEPLOY","data":["class Heal extends FyxClass {\n static run(battle, state, dice, ts) {\n const {Ability, SkillType} = Constants;\n var playerName = BattleUtils.getPrettifiedPlayerName(battle, state);\n let log = `${playerName} uses <sprite name=\"${BattleUtils.parseSkillName(SkillType.Heal)}\">${BattleUtils.parseSkillName(SkillType.Heal)}\\n`;\n\n state.actionLogs.push(this.apply(battle, state, dice, 1, 8, Ability.Intelligence, log));\n\n return BattleUtils.endTurn(battle, state, dice);\n }\n\n\n static apply(battle, state, dice, diceCount, diceFaces, ability, log) {\n const {Outcome, SkillType} = Constants;\n let rolls = [];\n let nativeRoll = dice.roll(diceCount, diceFaces);\n rolls.push({\n type: diceFaces,\n ability: ability,\n size: diceFaces,\n value: nativeRoll\n });\n\n const defenderState = state.fighterStates[state.playerToAct ? 0 : 1];\n const attackerState = state.fighterStates[state.playerToAct];\n\n let playerName = BattleUtils.getPrettifiedPlayerName(battle, state);\n\n let healAmount = nativeRoll + attackerState.modifiers[ability];\n\n if (attackerState.hp + healAmount > attackerState.maxHP) {\n healAmount = (attackerState.maxHP - attackerState.hp);\n }\n\n attackerState.hp += healAmount;\n\n log += `${playerName} heals : ${healAmount}\\n`;\n\n return {\n playerIndex: state.playerToAct,\n skillType: SkillType.Heal,\n results: [{\n rolls: rolls,\n outcome: Outcome.Success,\n damageOutput: [\n {\n damage: [0, 0, 0, 0, 0, 0, 0, 0, 0, 0],\n defenderHp: defenderState.hp,\n defenderReduction: [0, 0, 0, 0, 0, 0, 0, 0, 0, 0]\n }\n ],\n effectDurationsIncrement: [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],\n hpIncrement: healAmount,\n attackerHp: attackerState.hp\n }],\n actionLogMessage: log\n };\n\n }\n}",{"affectsOpponent":false,"deps":{"BattleUtils":{"$jig":0},"Constants":{"$jig":1},"FyxClass":{"$jig":2}},"description":"Heal Action","displayName":"Heal","handle":"heal","hash":"a55adddac7eca0d0bc119744c36d47e3e6f4cecdc104f7f3a424ed16b5f9765d","isAttackAction":false,"isSpellAction":true,"requiredLevel":0,"skillType":7}]}]}
    https://whatsonchain.com/tx/a477a9f06ff0c79274ee7e457353e497a04d1129d7eccc0204f988614ee3d198