Settings

Blockchain
Network
Unit
Language
Theme
Sound New Block

Transaction

d9a346d612798e050e7bffdb084e08616adef87ee4c36a34d5525d5d1f1fb7fb
Timestamp (utc)
2021-08-18 02:50:14
Fee Paid
0.00001839 BSV
(
0.00096508 BSV
-
0.00094669 BSV
)
Fee Rate
504.8 sat/KB
Version
1
Confirmations
282,949
Size Stats
3,643 B

3 Outputs

Total Output:
0.00094669 BSV
  • jrun cryptofightsM7 {"in":0,"ref":["e240baef0edfdd10710d2a24ec1a1287e9a3f3a4c7211509e69ab359361bfb47_o1","4112367857432cbf5b4df37d0cbd32c6fa884c011fdb4f21a9173bfc8fdc9da2_o1","ebb12f78ce1c975345094dd3c1b6306e7fb75fbcf3c7c64babb168edd49569fa_o1","9f0e192f744258c3484a1c19fa88ef68e46ee6cf75acc78cfe2ad5a0d2340d0e_o1"],"out":["52cbea7dc8099c6e3d6024f28247c03b59620542a7e748c628ae87b17f072c49"],"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":"838620d6ef042eb1a850732a8b3cdb1967463f957614a89ff5d484f4ed37e1ba","isAttackAction":false,"isSpellAction":true,"requiredLevel":0,"skillType":22}]}]}
    https://whatsonchain.com/tx/d9a346d612798e050e7bffdb084e08616adef87ee4c36a34d5525d5d1f1fb7fb