Settings

Blockchain
Network
Unit
Language
Theme
Sound New Block

Transaction

2b35d1e6214b246011ebcf1bd1bad10fe1f0bed26de1de8bf78c95b9922abb1a
Timestamp (utc)
2022-02-21 15:23:41
Fee Paid
0.00001067 BSV
(
0.00996166 BSV
-
0.00995099 BSV
)
Fee Rate
251.2 sat/KB
Version
1
Confirmations
254,733
Size Stats
4,247 B

12 Outputs

Total Output:
0.00995099 BSV
  • jrun cryptofightsMa{"in":0,"ref":["5b839b07faa2d9d41512858b439e82c22c5fce7631c194f2df1de92a690bebe0_o1","f01772f35cdac551a98e7930736c3f398677f3e2295a8f2a2dac4961212a02fe_o1","9f0e192f744258c3484a1c19fa88ef68e46ee6cf75acc78cfe2ad5a0d2340d0e_o1"],"out":["a178c4f6107ecdc978236e997d50e68a33755c4fb3e3cfb96a337fe8ca6df376"],"del":[],"cre":["n2Bd4cWhEQK1aVjb1R7EBGV9mrw3etvSdC"],"exec":[{"op":"DEPLOY","data":["class Heal extends FyxClass {\n static run(battle, state, dice, ts) {\n const {Ability, SkillType, RollType} = Constants;\n if(!BattleUtils.isSkillInCooldown(battle.battlePlayers[state.playerToAct], state.fighterStates[state.playerToAct]\n , state.fighterStates[state.playerToAct].turnCounter, SkillType.Heal))\n {\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, RollType.Intelligence, SkillType.Heal, log));\n BattleUtils.applySkillCooldown(battle, state, SkillType.Heal);\n }\n else\n {\n return BattleUtils.skipTurn(battle, state, dice);\n }\n\n return BattleUtils.endTurn(battle, state, dice);\n }\n\n\n static apply(battle, state, dice, diceCount, diceFaces, ability, rollType, skillType, log) {\n const {Outcome, DamageType, StatusEffect} = Constants;\n let rolls = [];\n let nativeRoll = 0;\n for (let index = 0; index < diceCount; index++) {\n let tempRoll = diceFaces > 0 ? dice.roll(1, diceFaces) : 0;\n nativeRoll += tempRoll;\n rolls.push({\n type: rollType,\n ability: ability,\n size: diceFaces,\n value: tempRoll\n });\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 const damageMap = Object.keys(DamageType).map(() => 0)\n\n return {\n playerIndex: state.playerToAct,\n skillType: skillType,\n results: [{\n rolls: rolls,\n outcome: Outcome.Success,\n damageOutput: [\n {\n damage: damageMap,\n defenderHp: defenderState.hp,\n defenderReduction: damageMap\n }\n ],\n attackerStatusEffectsIncrement: Object.keys(StatusEffect).map(() => 0),\n hpIncrement: healAmount,\n attackerHp: attackerState.hp\n }],\n bonusFromAbility: attackerState.modifiers[ability],\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":"22b231a4e2d8c07679b53bd212311dcb7a0337b552f74d5b7274e643067a66d4","isAttackAction":false,"isSpellAction":true,"requiredLevel":0,"skillType":7}]}]}
    https://whatsonchain.com/tx/2b35d1e6214b246011ebcf1bd1bad10fe1f0bed26de1de8bf78c95b9922abb1a
Total Output:
0.00995099 BSV