Settings

Blockchain
Network
Unit
Language
Theme
Sound New Block

Transaction

5fff8ed4c8d2af3a60b0d9fa5fb04c382fd4d33a05fde70f1898cc9ebc2c50ca
Timestamp (utc)
2021-07-14 11:51:24
Fee Paid
0.00002264 BSV
(
0.00168575 BSV
-
0.00166311 BSV
)
Fee Rate
623.3 sat/KB
Version
1
Confirmations
289,432
Size Stats
3,632 B

3 Outputs

Total Output:
0.00166311 BSV
  • jrun cryptofightsM, {"in":0,"ref":["12f938e531be347c7d8c1be42c573f63ce1ebfad841015e3a270c480b9f1e9aa_o1","32b7b121f64f03e835959b62b2b1b12e811720750cfc2387ba5615365a5f0528_o1","af3e9bf4d47fa3cd006bef12d45c657711d2e692e25f1aa3af2c5625a3e403f0_o1","9f0e192f744258c3484a1c19fa88ef68e46ee6cf75acc78cfe2ad5a0d2340d0e_o1"],"out":["de5551cf7456cdff66cc151ef50c49c7621438fb385f89da5a6669573eb15d32"],"del":[],"cre":["n2Bd4cWhEQK1aVjb1R7EBGV9mrw3etvSdC"],"exec":[{"op":"DEPLOY","data":["class Shock extends FyxClass {\n static run(battle, state, dice) {\n const {Ability, DamageType, SkillType, StatusEffect} = Constants;\n if(!BattleUtils.isSkillInCooldown(battle.battlePlayers[state.playerToAct], state.fighterStates[state.playerToAct]\n , state.fighterStates[state.playerToAct].turnCounter, SkillType.Shock))\n {\n const defenderPlayer = battle.battlePlayers[state.playerToAct ? 0 : 1];\n \n let opponentName = BattleUtils.getOpponentName(battle, state);\n var playerName = BattleUtils.getPrettifiedPlayerName(battle, state);\n \n let log = `${playerName} uses <sprite name=\"${BattleUtils.parseSkillName(SkillType.Shock)}\">${BattleUtils.parseSkillName(SkillType.Shock)}\\n<gradient=!log-color> `;\n\n let attackActionLog = {\n actionLogMessage: log\n };\n attackActionLog.playerIndex = state.playerToAct;\n attackActionLog.skillType = SkillType.Shock;\n attackActionLog.results = [];\n\n let resultMessage = `${playerName} spell attacks ${opponentName} : `; // goes up\n let damageOutput = {type: DamageType.Lightning, diceCount: 1, diceFaces: 12};\n\n const defenderState = state.fighterStates[state.playerToAct ? 0 : 1];\n const attackerState = state.fighterStates[state.playerToAct];\n // Process pre-attack saving throws actionLogs\n if (BattleUtils.isUnderStatusEffect(defenderState, StatusEffect.Hidden, defenderState.turnCounter)) { // Spot\n state.actionLogs.push(Attack.makeSpotActionLog(battle, state, dice, attackerState, defenderState, state.playerToAct));\n }\n \n if (!BattleUtils.isUnderStatusEffect(defenderState, StatusEffect.Hidden, defenderState.turnCounter)) {\n var result = Attack.makeResult(battle, state, dice, Ability.Intelligence, Ability.Intelligence, 0, 0, 1, [damageOutput], defenderPlayer, resultMessage, SkillType.Shock, null, 0);\n attackActionLog.results.push(result);\n state.actionLogs.push(attackActionLog);\n }\n\n Attack.processPostAttackStatus(state, battle, SkillType.Shock);\n BattleUtils.applySkillCooldown(battle, state, SkillType.Shock, 1);\n }\n else\n {\n return BattleUtils.skipTurn(battle, state, dice);\n }\n \n return BattleUtils.endTurn(battle, state, dice);\n }\n}",{"affectsOpponent":true,"cooldown":1,"deps":{"Attack":{"$jig":0},"BattleUtils":{"$jig":1},"Constants":{"$jig":2},"FyxClass":{"$jig":3}},"description":"Shock Action","displayName":"Shock","handle":"shock","hash":"09bf72f4ad1663c58b362f93858a67500083c5c6811d60ea653969d99e99c72b","isAttackAction":false,"isSpellAction":true,"requiredLevel":0,"skillType":14}]}]}
    https://whatsonchain.com/tx/5fff8ed4c8d2af3a60b0d9fa5fb04c382fd4d33a05fde70f1898cc9ebc2c50ca