Settings

Blockchain
Network
Unit
Language
Theme
Sound New Block

Transaction

70da9cda2096c9b721bb168f0bfe31448c7f88c56e05cde060e629e784328126
Timestamp (utc)
2021-06-18 18:41:10
Fee Paid
0.00001976 BSV
(
0.00702504 BSV
-
0.00700528 BSV
)
Fee Rate
541.2 sat/KB
Version
1
Confirmations
297,094
Size Stats
3,651 B

3 Outputs

Total Output:
0.00700528 BSV
  • jrun cryptofightsM? {"in":0,"ref":["707b7093250a356d60ad866dc0b6162a8a886e2f14c1a3434a30ecd455db7445_o1","3f41b320ac0e3fc2930585ba768436c89f1f2d42896be9824c982793d482df77_o1","9f0e192f744258c3484a1c19fa88ef68e46ee6cf75acc78cfe2ad5a0d2340d0e_o1"],"out":["ecaee49a2c985fae627521ed24f83cd0356919b90ed1aad87e68e3d3fe1d8153"],"del":[],"cre":["n2Bd4cWhEQK1aVjb1R7EBGV9mrw3etvSdC"],"exec":[{"op":"DEPLOY","data":["class Heal extends FyxClass {\n static run(battle, state, dice, ts) {\n const {Ability, SkillType} = 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, 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, log) {\n const {Outcome, SkillType, DamageType, StatusEffect} = 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 const damageMap = Object.keys(DamageType).map(() => 0)\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: 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 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":"aa85c1bd30bdf7b2768fbe4a9056c33e8d86ee6ed7ce53c5e217a9a6e43cbbf2","isAttackAction":false,"isSpellAction":true,"requiredLevel":0,"skillType":7}]}]}
    https://whatsonchain.com/tx/70da9cda2096c9b721bb168f0bfe31448c7f88c56e05cde060e629e784328126