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