md5-fight-plus
Version:
27 lines (26 loc) • 924 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.fireBurst = void 0;
exports._fireBurst = _fireBurst;
const utils_1 = require("../../utils");
const _1 = require(".");
const getInfo = (player, atk) => {
const info = [`${player.name}释放【炎爆术】造成${atk}伤害`];
return (0, utils_1.getRandomItem)(info);
};
function _fireBurst(player) {
const id = player.hooks.onAttack.tap("fireBurst", (props) => {
const atk = 40;
(0, utils_1.releaseFiring)(player, 8);
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.fireBurst = {
name: "炎爆术",
description: "造成40点伤害,【灼热】8",
mana: 8,
run: _fireBurst,
type: [_1.FIRE_TYPE],
};