Transaction

0d646e722979b840e893bf8c70ba0dfd3564f21a81360bfbffbe9c2ffc856efe
Timestamp (utc)
2021-05-19 15:43:57
Fee Paid
0.00001700 BSV
(
0.00504629 BSV
-
0.00502929 BSV
)
Fee Rate
522.9 sat/KB
Version
1
Confirmations
247,049
Size Stats
3,249 B

3 Outputs

Total Output:
0.00502929 BSV
  • jrun cryptofightsM¬ {"in":0,"ref":["88ff94e9a9609f0b14af70a8252ed8e9b8690d62b18bada21624f70a0b543d74_o1","571cde59f8ebc27b62326ec7d99765bc0312b437e5f55f04b1662539f287f2ab_o1","14e278c68ff521e0916ad7c713ae4a0156e76361dbd3b2b357dfb6028e0dca7a_o1"],"out":["6f7d98f90bbd54d5a3d891e5a4ae33562640c731219315dab335a2d2853e8038"],"del":[],"cre":["1AFqaCgQfj2D4CqXJF4zzBM86YnXKXctX"],"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 BattleUtils.applySkillCooldown(battle, state, SkillType.Heal);\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,"cooldown":0,"deps":{"BattleUtils":{"$jig":0},"Constants":{"$jig":1},"FyxClass":{"$jig":2}},"description":"Heal Action","displayName":"Heal","handle":"heal","hash":"fb13941069c60cbe3b0d4549034681b93ea652de0c44ff49d6bd40a54d4bdf5c","isAttackAction":false,"isSpellAction":true,"requiredLevel":0,"skillType":7}]}]}
    https://whatsonchain.com/tx/0d646e722979b840e893bf8c70ba0dfd3564f21a81360bfbffbe9c2ffc856efe