【拥嫡】cost化
This commit is contained in:
parent
2344d6e863
commit
83ad0fb58e
|
@ -21120,49 +21120,46 @@ const skills = {
|
||||||
animationColor: "thunder",
|
animationColor: "thunder",
|
||||||
skillAnimation: "legend",
|
skillAnimation: "legend",
|
||||||
mark: true,
|
mark: true,
|
||||||
direct: true,
|
async cost(event, trigger, player) {
|
||||||
content: function () {
|
event.result = await player
|
||||||
"step 0";
|
.chooseTarget(
|
||||||
player
|
get.prompt2("yongdi"),
|
||||||
.chooseTarget(get.prompt2("yongdi"), function (card, player, target) {
|
(card, player, target) => {
|
||||||
return (target.hasSex("male") || target.name == "key_yuri") && target != player;
|
if (player === target) return false;
|
||||||
})
|
return target.hasSex("male") || target.name == "key_yuri";
|
||||||
.set("ai", function (target) {
|
}
|
||||||
|
)
|
||||||
|
.set("ai", target => {
|
||||||
if (!_status.event.goon) return 0;
|
if (!_status.event.goon) return 0;
|
||||||
var player = _status.event.player;
|
let player = _status.event.player;
|
||||||
var att = get.attitude(player, target);
|
let att = get.attitude(player, target);
|
||||||
if (att <= 1) return 0;
|
if (att <= 1) return 0;
|
||||||
var mode = get.mode();
|
let mode = get.mode();
|
||||||
if (mode == "identity" || (mode == "versus" && (_status.mode == "four" || _status.mode == "guandu"))) {
|
if (mode == "identity" || (mode == "versus" && (_status.mode == "four" || _status.mode == "guandu"))) {
|
||||||
if (target.name && lib.character[target.name]) {
|
if (target.getStockSkills(true, true).some(i => {
|
||||||
for (var i = 0; i < lib.character[target.name][3].length; i++) {
|
if (target.hasSkill(i)) return false;
|
||||||
if (lib.skill[lib.character[target.name][3][i]].zhuSkill) {
|
let info = get.info(i);
|
||||||
return att * 2;
|
return info && info.zhuSkill;
|
||||||
}
|
})) return att * 2;
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
return att;
|
return att;
|
||||||
})
|
})
|
||||||
.set("goon", !player.hasUnknown());
|
.set("goon", !player.hasUnknown())
|
||||||
"step 1";
|
.forResult();
|
||||||
if (result.bool) {
|
},
|
||||||
var target = result.targets[0];
|
async content(event, trigger, player) {
|
||||||
player.logSkill("yongdi", target);
|
player.awakenSkill("yongdi");
|
||||||
player.awakenSkill("yongdi");
|
let target = event.targets[0], mode = get.mode();
|
||||||
target.gainMaxHp();
|
if (mode !== "identity" || player.identity !== "nei") player.addExpose(0.25);
|
||||||
target.recover();
|
target.gainMaxHp();
|
||||||
var skills = target.getStockSkills(true, true).filter(skill => {
|
target.recover();
|
||||||
if (target.hasSkill(skill)) return false;
|
let skills = target.getStockSkills(true, true).filter(skill => {
|
||||||
var info = get.info(skill);
|
if (target.hasSkill(skill)) return false;
|
||||||
return info && info.zhuSkill;
|
let info = get.info(skill);
|
||||||
});
|
return info && info.zhuSkill;
|
||||||
if (skills.length) {
|
});
|
||||||
target.addSkills(skills);
|
if (skills.length) target.addSkills(skills);
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
ai: { expose: 0.2 },
|
|
||||||
},
|
},
|
||||||
regushe: {
|
regushe: {
|
||||||
audio: "gushe",
|
audio: "gushe",
|
||||||
|
|
Loading…
Reference in New Issue