Settings

Blockchain
Network
Unit
Language
Theme
Sound New Block

Transaction

f9bf5adf503bca9496358e63ee0e359cab929f948d72bc45f48c4385dbcee9ad
Timestamp (utc)
2021-06-25 20:37:07
Fee Paid
0.00002264 BSV
(
0.00162760 BSV
-
0.00160496 BSV
)
Fee Rate
623 sat/KB
Version
1
Confirmations
293,991
Size Stats
3,632 B

3 Outputs

Total Output:
0.00160496 BSV
  • jrun cryptofightsM, {"in":0,"ref":["afd7778af7785c56441f16a94a1422c607299029f898c333e2d9d6aabf5ba1bb_o1","ca0cbc5efdb004b0a83c5fc0cfe22bed360cb34a691aa00e40e37fba18ccdcec_o1","5f50b89d572ee82e4e756bf2d3b66df920264c0dac58b45cc5473cd6d11809f9_o1","9f0e192f744258c3484a1c19fa88ef68e46ee6cf75acc78cfe2ad5a0d2340d0e_o1"],"out":["c2c733684c581bfb6f387a9de6048fe8a12bcdfbf2f755b83e9fb6d588cb0d19"],"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":"c4aef0ab0395187b28ba452064ed3561de769e82d931e2cc44d8fcb76795f0db","isAttackAction":false,"isSpellAction":true,"requiredLevel":0,"skillType":14}]}]}
    https://whatsonchain.com/tx/f9bf5adf503bca9496358e63ee0e359cab929f948d72bc45f48c4385dbcee9ad