Transaction

d9856f684dace8a775bc20157af76d12d8ce6b4a0a4b5ca33112c59e70d8406e
( - )
179,141
2021-06-25 12:25:23
1
3,621 B

3 Outputs

Total Output:
  • jrun cryptofightsM! {"in":0,"ref":["54630ac058a610a4f59543694c1fc4e2296871aa387d5467088aaf481d88c172_o1","24da7c843b463f23e1e0cc9a73f4d95202b330194bcc100ee79edc90f78a0f8b_o1","5b259cd9534b3c87b7c205b7f7f62e490535f3b9aec97ae59d6289355b99df15_o1","9f0e192f744258c3484a1c19fa88ef68e46ee6cf75acc78cfe2ad5a0d2340d0e_o1"],"out":["b153c4e1f3b3f51d29c94e9e79473ebc6ec552c588434c981f90649839add8ca"],"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":"7f6162f8ca9dc9dd51474e393148af31fdd8f36081a04de17a89f0548d91e9a1","isAttackAction":false,"isSpellAction":true,"requiredLevel":0,"skillType":23}]}]}
    https://whatsonchain.com/tx/d9856f684dace8a775bc20157af76d12d8ce6b4a0a4b5ca33112c59e70d8406e