Settings

Blockchain
Network
Unit
Language
Theme
Sound New Block

Transaction

a1fe1bd2f3aee4f6b387bf771165126d08757269693216bbb8288a2e94f2bd38
Timestamp (utc)
2021-08-17 16:14:03
Fee Paid
0.00001828 BSV
(
0.00095675 BSV
-
0.00093847 BSV
)
Fee Rate
504.4 sat/KB
Version
1
Confirmations
289,287
Size Stats
3,622 B

3 Outputs

Total Output:
0.00093847 BSV
  • jrun cryptofightsM! {"in":0,"ref":["fa3452e29d444cd1d1428ef161d29e7eec47257e36bf69cbceb158e2c7bd9060_o1","1919799e7b75be032cd6be5372fc116eac674fa4143e88275fb687a99cd32e1b_o1","73b6ed01834807e1a8a0c0f40490b306a5a907427551d0e470f64067a450f03f_o1","9f0e192f744258c3484a1c19fa88ef68e46ee6cf75acc78cfe2ad5a0d2340d0e_o1"],"out":["b99f6ac92a145151ddd8e0e4eccc895d3c317c2c989afc2d005e39f195a9f6a7"],"del":[],"cre":["n2Bd4cWhEQK1aVjb1R7EBGV9mrw3etvSdC"],"exec":[{"op":"DEPLOY","data":["class Freeze extends FyxClass {\n static run(battle, state, dice, ts) {\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.Freeze))\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} `;\n\n let attackActionLog = {\n actionLogMessage: `${playerName} uses <sprite name=\"${BattleUtils.parseSkillName(SkillType.Freeze)}\">${BattleUtils.parseSkillName(SkillType.Freeze)}\\n<gradient=!log-color>`\n };\n attackActionLog.playerIndex = state.playerToAct;\n attackActionLog.skillType = SkillType.Freeze;\n attackActionLog.results = [];\n\n let resultMessage = `${playerName} spell attacks ${opponentName} : `; // goes up\n let damageOutput = {type: DamageType.Cold, diceCount: 2, diceFaces: 6};\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, 0, [damageOutput], defenderPlayer, resultMessage, SkillType.Freeze, null, 2);\n attackActionLog.results.push(result);\n state.actionLogs.push(attackActionLog);\n }\n\n Attack.processPostAttackStatus(state, battle, SkillType.Freeze);\n BattleUtils.applySkillCooldown(battle, state, SkillType.Freeze, 2);\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":2,"deps":{"Attack":{"$jig":0},"BattleUtils":{"$jig":1},"Constants":{"$jig":2},"FyxClass":{"$jig":3}},"description":"Freeze Action","displayName":"Freeze","handle":"freeze","hash":"8da693003da19dbaf29b7d5a2bd2f033a21fdb3b785609f8bc02554c8ea7de2c","isAttackAction":false,"isSpellAction":true,"requiredLevel":0,"skillType":23}]}]}
    https://whatsonchain.com/tx/a1fe1bd2f3aee4f6b387bf771165126d08757269693216bbb8288a2e94f2bd38