bugfix+技能调整
1.修复裴元绍【没欲】实际效果为“每名角色每回合限一次”且加伤效果未移除的bug 2.修复武关羽【武佑】全局技能无法播放配音以及转化牌缺少“无距离限制”效果的bug 3.修复起刘备【振鞘】使用箭头传递this和arguments导致报错的bug 4.修复周姬【炎谋】捡判定牌只能捡自己的的bug 5.标607技能名翻译修改 6.标周处【凶侠】技能效果调整
This commit is contained in:
parent
24e25ad28a
commit
e7355ff8e5
|
@ -3947,12 +3947,6 @@ const skills = {
|
|||
//裴元绍
|
||||
dcmoyu: {
|
||||
audio: 2,
|
||||
init() {
|
||||
game.addGlobalSkill("dcmoyu_ai");
|
||||
},
|
||||
onremove() {
|
||||
if (!game.hasPlayer(i => i.hasSkill("dcmoyu"), true)) game.removeGlobalSkill("dcmoyu_ai");
|
||||
},
|
||||
enable: "phaseUse",
|
||||
filter(event, player) {
|
||||
return game.hasPlayer(current => lib.skill.dcmoyu.filterTarget(null, player, current));
|
||||
|
@ -3962,7 +3956,7 @@ const skills = {
|
|||
},
|
||||
async content(event, trigger, player) {
|
||||
const target = event.target;
|
||||
player.addTempSkill("dcmoyu_clear");
|
||||
player.addTempSkill("dcmoyu_clear", "phaseUseAfter");
|
||||
player.markAuto("dcmoyu_clear", [target]);
|
||||
await player.gainPlayerCard(target, "hej", true, 1 + player.hasSkill("dcmoyu_add"));
|
||||
player.removeSkill("dcmoyu_add");
|
||||
|
@ -3979,10 +3973,6 @@ const skills = {
|
|||
return lib.filter.targetEnabled.apply(this, arguments);
|
||||
})
|
||||
.set("sourcex", player)
|
||||
.set("num", num)
|
||||
.set("oncard", card => {
|
||||
_status.event.baseDamage = _status.event.getParent().num;
|
||||
})
|
||||
.forResult();
|
||||
if (result.bool) {
|
||||
if (
|
||||
|
@ -3991,11 +3981,13 @@ const skills = {
|
|||
})
|
||||
) {
|
||||
player.tempBanSkill("dcmoyu");
|
||||
player.addTempSkill("dcmoyu_ban");
|
||||
} else {
|
||||
player.addTempSkill("dcmoyu_add", "phaseChange");
|
||||
}
|
||||
}
|
||||
},
|
||||
global: "dcmoyu_ai",
|
||||
subSkill: {
|
||||
clear: {
|
||||
charlotte: true,
|
||||
|
@ -4004,7 +3996,7 @@ const skills = {
|
|||
ban: {
|
||||
charlotte: true,
|
||||
mark: true,
|
||||
marktext: "欲",
|
||||
marktext: '<span style="text-decoration: line-through;">欲</span>',
|
||||
intro: { content: "偷马贼被反打了!" },
|
||||
},
|
||||
add: {
|
||||
|
@ -4014,15 +4006,6 @@ const skills = {
|
|||
intro: { content: "欲望加速,下次抢两张!" },
|
||||
},
|
||||
ai: {
|
||||
trigger: { player: "dieAfter" },
|
||||
filter: () => {
|
||||
return !game.hasPlayer(i => i.hasSkill("dcmoyu"), true);
|
||||
},
|
||||
silent: true,
|
||||
forceDie: true,
|
||||
content: () => {
|
||||
game.removeGlobalSkill("dcmoyu_ai");
|
||||
},
|
||||
ai: {
|
||||
effect: {
|
||||
target: function (card, player, target, current) {
|
||||
|
|
|
@ -9311,7 +9311,7 @@ const skills = {
|
|||
aiValue: (player, card, num) => {
|
||||
if (num > 0 && get.itemtype(card) === "card" && card.name !== "zhuge" && get.subtype(card) === "equip1" && !player.getEquip(1)) return 0.01 * num;
|
||||
},
|
||||
aiUseful: () => {
|
||||
aiUseful: function () {
|
||||
return lib.skill.jsrgzhenqiao.mod.aiValue.apply(this, arguments);
|
||||
},
|
||||
},
|
||||
|
|
|
@ -115,7 +115,7 @@ const skills = {
|
|||
let cards = [];
|
||||
if (event.name == "cardsDiscard") {
|
||||
const evt = event.getParent().relatedEvent;
|
||||
if (evt && evt.name == "judge" && evt.player == player) {
|
||||
if (evt && evt.name == "judge" && evt.player != player) {
|
||||
cards.addArray(event.cards.filter(i => get.position(i, true) == "d"));
|
||||
}
|
||||
} else {
|
||||
|
|
|
@ -240,6 +240,7 @@ const skills = {
|
|||
selectCard: 2,
|
||||
position: "hes",
|
||||
viewAs: { name: "juedou" },
|
||||
selectTarget: 2,
|
||||
viewAsFilter(player) {
|
||||
if (player.countCards("hes") < 2) return false;
|
||||
},
|
||||
|
|
|
@ -208,8 +208,8 @@ const translates = {
|
|||
stddaizui: "戴罪",
|
||||
stddaizui_info: "锁定技,当你受到伤害后,你视为本轮未发动过〖盗书〗。",
|
||||
stdxiongxia: "凶侠",
|
||||
stdxiongxia_info: "你可以将两张牌当作【决斗】使用。你以此法使用的【决斗】结算完毕后,若所有目标角色都受到了此牌造成的伤害,则〖凶侠〗于本回合失效。",
|
||||
stdhuizhan: "挥战",
|
||||
stdxiongxia_info: "你可以将两张牌当作【决斗】对两名其他角色使用。你以此法使用的【决斗】结算完毕后,若所有目标角色都受到了此牌造成的伤害,则〖凶侠〗于本回合失效。",
|
||||
stdhuizhan: "挥戟",
|
||||
stdhuizhan_info: "你使用【杀】可以额外指定至多两个目标。若如此做,目标角色响应此【杀】时,其他目标角色可以代替其使用【闪】。",
|
||||
stdmingfa: "明伐",
|
||||
stdmingfa_info: "出牌阶段,你可以对一名体力值大于1的角色造成1点伤害,然后此技能失效直至其死亡或回复体力。",
|
||||
|
|
|
@ -798,6 +798,7 @@ const skills = {
|
|||
subSkill: {
|
||||
g: {
|
||||
audio: "dcwuyou",
|
||||
forceaudio: true,
|
||||
enable: "phaseUse",
|
||||
usable: 1,
|
||||
filter(event, player) {
|
||||
|
@ -934,6 +935,10 @@ const skills = {
|
|||
if (!card.cards) return;
|
||||
if (card.cards.some(card => card.hasGaintag("dcwuyou_transfer"))) return Infinity;
|
||||
},
|
||||
targetInRange(card, player) {
|
||||
if (!card.cards) return;
|
||||
if (card.cards.some(card => card.hasGaintag("dcwuyou_transfer"))) return true;
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue