Settings

Blockchain
Network
Unit
Language
Theme
Sound New Block

Transaction

7caa994671217a57afd858c5c85c7784c2d9f76bcc482d13ef173d01ead866bd
Timestamp (utc)
2021-08-18 21:11:14
Fee Paid
0.00001839 BSV
(
0.00100000 BSV
-
0.00098161 BSV
)
Fee Rate
504.6 sat/KB
Version
1
Confirmations
287,959
Size Stats
3,644 B

3 Outputs

Total Output:
0.00098161 BSV
  • jrun cryptofightsM7 {"in":0,"ref":["23a979c10d0a2589b0f2fed7bfc9b773ba44bb512db74bcd6e62d08e63beb82d_o1","874058203367591d6f39f7d3c77577131896358873dfa8d6e3096f9b308e891f_o1","4d3a002b38a225fb945cfb079365ed14b79b51008ec721cbe78b6de78a122f6f_o1","9f0e192f744258c3484a1c19fa88ef68e46ee6cf75acc78cfe2ad5a0d2340d0e_o1"],"out":["3adbfaf166f90423a1ae309c943235fa9352d06fe3a48acd2107c1f1294b79d4"],"del":[],"cre":["n2Bd4cWhEQK1aVjb1R7EBGV9mrw3etvSdC"],"exec":[{"op":"DEPLOY","data":["class Fireball 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.Fireball))\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.Fireball)}\">${BattleUtils.parseSkillName(SkillType.Fireball)}\\n<gradient=!log-color> `;\n\n let attackActionLog = {\n actionLogMessage: log\n };\n attackActionLog.playerIndex = state.playerToAct;\n attackActionLog.skillType = SkillType.Fireball;\n attackActionLog.results = [];\n\n let resultMessage = `${playerName} spell attacks ${opponentName} : `; // goes up\n let damageOutput = {type: DamageType.Fire, diceCount: 3, 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.Fireball, null, 0);\n attackActionLog.results.push(result);\n state.actionLogs.push(attackActionLog);\n }\n\n Attack.processPostAttackStatus(state, battle, SkillType.Fireball);\n BattleUtils.applySkillCooldown(battle, state, SkillType.Fireball, 3);\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":3,"deps":{"Attack":{"$jig":0},"BattleUtils":{"$jig":1},"Constants":{"$jig":2},"FyxClass":{"$jig":3}},"description":"Fireball Action","displayName":"Fireball","handle":"fireball","hash":"8ebb9974a679e6e3e231d2aa1487313dc6c0cd4b7bb695a04bd1a2d92122de82","isAttackAction":false,"isSpellAction":true,"requiredLevel":0,"skillType":22}]}]}
    https://whatsonchain.com/tx/7caa994671217a57afd858c5c85c7784c2d9f76bcc482d13ef173d01ead866bd