Settings

Blockchain
Network
Unit
Language
Theme
Sound New Block

Transaction

463149322f06bbcb7cac147f17a4c2ebcb1ed80f9e00967fe376dbee9de02e11
Timestamp (utc)
2021-09-02 11:33:01
Fee Paid
0.00001839 BSV
(
0.00100000 BSV
-
0.00098161 BSV
)
Fee Rate
504.8 sat/KB
Version
1
Confirmations
280,637
Size Stats
3,643 B

3 Outputs

Total Output:
0.00098161 BSV
  • jrun cryptofightsM6 {"in":0,"ref":["5d158c4d4c73d3397c4f2f50da1e7abfc3d56077e0e48e78785bff0bfade8a24_o1","e84c1c1fcf6e757b97519574782b146fa877c0f67c5669fba79bc7d407741558_o1","301ab2306153d2b32319bf33c897b77409f18d22f6ba4dfd04c7a162301e18df_o1","9f0e192f744258c3484a1c19fa88ef68e46ee6cf75acc78cfe2ad5a0d2340d0e_o1"],"out":["855d16becf255a5cc7e74efc6cec267bcaa53620b4424dd8d62137430c94f497"],"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":"9cf5965fa59a926c7234e753cd7329f08a5d4e77138158d77b6eb874c33a76d1","isAttackAction":true,"isSpellAction":true,"requiredLevel":0,"skillType":22}]}]}
    https://whatsonchain.com/tx/463149322f06bbcb7cac147f17a4c2ebcb1ed80f9e00967fe376dbee9de02e11