UNPKG

md5-fight-plus

Version:

29 lines (28 loc) 1.02 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.fireBlast = void 0; exports._fireblast = _fireblast; const utils_1 = require("../../utils"); const _1 = require("."); const getInfo = (player, atk) => { const info = [ `${player.name}快速引导周围的火元素能量,手中凝聚并释放【火焰冲击】造成${atk}伤害`, ]; return (0, utils_1.getRandomItem)(info); }; function _fireblast(player) { const id = player.hooks.onAttack.tap({ name: "fireBlast", lives: 1 }, (props) => { const atk = 10; (0, utils_1.releaseFiring)(player, 2); player.battleField.logger.addInfo(getInfo(player, atk), player.hooks.onAttack); return Object.assign(Object.assign({}, props), { damage: atk }); }); (0, utils_1.removeHookInRoundEnd)(player, id, "onAttack"); } exports.fireBlast = { name: "火焰冲击", description: "造成10点伤害,【灼热】2", mana: 2, run: _fireblast, type: [_1.FIRE_TYPE], };