md5-fight-plus
Version:
26 lines (25 loc) • 863 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.fireBall = void 0;
exports._fireBall = _fireBall;
const utils_1 = require("../../utils");
const _1 = require(".");
const getInfo = (player, atk) => {
const info = [`${player.name}释放【火球术】造成${atk}伤害`];
return (0, utils_1.getRandomItem)(info);
};
function _fireBall(player) {
player.hooks.onAttack.tap({ name: "fireBall", lives: 1 }, (props) => {
const atk = 20;
(0, utils_1.releaseFiring)(player, 4);
player.battleField.logger.addInfo(getInfo(player, atk), player.hooks.onAttack);
return Object.assign(Object.assign({}, props), { damage: atk });
});
}
exports.fireBall = {
name: "火球术",
description: "造成20点伤害,【灼热】4",
mana: 4,
run: _fireBall,
type: [_1.FIRE_TYPE],
};