c-e effect->effect_use
This commit is contained in:
parent
0209140af8
commit
7971e524b4
|
@ -932,7 +932,7 @@ const skills = {
|
||||||
ai: {
|
ai: {
|
||||||
threaten: 3,
|
threaten: 3,
|
||||||
effect: {
|
effect: {
|
||||||
player(card, player, target) {
|
player_use(card, player, target) {
|
||||||
if (!target || typeof card !== "object" || player._clanjiejian_mod_temp || get.type(card) === "equip" || get.attitude(player, target) <= 0 || get.cardNameLength(card) !== player.getHistory("useCard").length + 1) return;
|
if (!target || typeof card !== "object" || player._clanjiejian_mod_temp || get.type(card) === "equip" || get.attitude(player, target) <= 0 || get.cardNameLength(card) !== player.getHistory("useCard").length + 1) return;
|
||||||
let targets = [target],
|
let targets = [target],
|
||||||
evt = _status.event.getParent("useCard");
|
evt = _status.event.getParent("useCard");
|
||||||
|
@ -2705,7 +2705,7 @@ const skills = {
|
||||||
if (player.getHistory("useCard", evt => get.type(evt.card) == "equip").length > 0) return false;
|
if (player.getHistory("useCard", evt => get.type(evt.card) == "equip").length > 0) return false;
|
||||||
},
|
},
|
||||||
effect: {
|
effect: {
|
||||||
target(card, player, target) {
|
target_use(card, player, target) {
|
||||||
if (player == target && get.type(card) == "equip" && !player.getHistory("useCard", evt => get.type(evt.card) == "equip").length == 0) return [1, 3];
|
if (player == target && get.type(card) == "equip" && !player.getHistory("useCard", evt => get.type(evt.card) == "equip").length == 0) return [1, 3];
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
|
@ -759,7 +759,7 @@ const skills = {
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
effect: {
|
effect: {
|
||||||
target(card, player, target, current) {
|
target_use(card, player, target, current) {
|
||||||
if (player == target && player.isPhaseUsing() && get.type(card) == "equip") {
|
if (player == target && player.isPhaseUsing() && get.type(card) == "equip") {
|
||||||
if (player.hasValueTarget("sha", false) && typeof player.getStat("skill").dcbianzhuang == "number") return [1, 3];
|
if (player.hasValueTarget("sha", false) && typeof player.getStat("skill").dcbianzhuang == "number") return [1, 3];
|
||||||
}
|
}
|
||||||
|
@ -1645,7 +1645,7 @@ const skills = {
|
||||||
},
|
},
|
||||||
ai: {
|
ai: {
|
||||||
effect: {
|
effect: {
|
||||||
player(card, player, target) {
|
player_use(card, player, target) {
|
||||||
if (player !== target && get.type2(card) === "trick") {
|
if (player !== target && get.type2(card) === "trick") {
|
||||||
let tars = [target];
|
let tars = [target];
|
||||||
if (ui.selected.targets.length) tars.addArray(ui.selected.targets.filter(i => i !== player && i !== target));
|
if (ui.selected.targets.length) tars.addArray(ui.selected.targets.filter(i => i !== player && i !== target));
|
||||||
|
|
|
@ -2619,7 +2619,7 @@ const skills = {
|
||||||
order: 10,
|
order: 10,
|
||||||
result: { player: 1 },
|
result: { player: 1 },
|
||||||
effect: {
|
effect: {
|
||||||
target: (card, player, target) => {
|
target_use(card, player, target) {
|
||||||
if (card.name === "sha" && target.getExpansions("ddddongcha_effect").length < 2 && lib.skill["dddzhijie"].hiddenCard(target, "shan")) return [1, 1, 1, -get.sgn(get.attitude(player, _status.currentPhase))];
|
if (card.name === "sha" && target.getExpansions("ddddongcha_effect").length < 2 && lib.skill["dddzhijie"].hiddenCard(target, "shan")) return [1, 1, 1, -get.sgn(get.attitude(player, _status.currentPhase))];
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
|
@ -3176,7 +3176,7 @@ const skills = {
|
||||||
},
|
},
|
||||||
ai: {
|
ai: {
|
||||||
effect: {
|
effect: {
|
||||||
target(card, player, target, current) {
|
target_use(card, player, target, current) {
|
||||||
if (get.type(card, "trick") == "trick" && get.distance(player, target) > 1) return "zeroplayertarget";
|
if (get.type(card, "trick") == "trick" && get.distance(player, target) > 1) return "zeroplayertarget";
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
@ -4609,7 +4609,7 @@ const skills = {
|
||||||
},
|
},
|
||||||
ai: {
|
ai: {
|
||||||
effect: {
|
effect: {
|
||||||
target(card, player, target, current) {
|
target_use(card, player, target, current) {
|
||||||
if (get.type(card, "trick") == "trick" && _status.currentPhase == player) return "zeroplayertarget";
|
if (get.type(card, "trick") == "trick" && _status.currentPhase == player) return "zeroplayertarget";
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
@ -6238,7 +6238,7 @@ const skills = {
|
||||||
},
|
},
|
||||||
ai: {
|
ai: {
|
||||||
effect: {
|
effect: {
|
||||||
target(card, player, target) {
|
target_use(card, player, target) {
|
||||||
if (get.tag(card, "multineg")) {
|
if (get.tag(card, "multineg")) {
|
||||||
return "zerotarget";
|
return "zerotarget";
|
||||||
}
|
}
|
||||||
|
|
|
@ -2327,7 +2327,7 @@ const skills = {
|
||||||
ai: {
|
ai: {
|
||||||
threaten: 1.5,
|
threaten: 1.5,
|
||||||
effect: {
|
effect: {
|
||||||
target(card, player, target, current) {
|
target_use(card, player, target, current) {
|
||||||
if (get.type(card) == "equip" && !get.cardtag(card, "gifts")) return [1, 0.1];
|
if (get.type(card) == "equip" && !get.cardtag(card, "gifts")) return [1, 0.1];
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
@ -3297,7 +3297,7 @@ const skills = {
|
||||||
},
|
},
|
||||||
ai: {
|
ai: {
|
||||||
effect: {
|
effect: {
|
||||||
player: (card, player, target) => {
|
player_use(card, player, target) {
|
||||||
if (typeof card !== "object") return;
|
if (typeof card !== "object") return;
|
||||||
let suit = get.suit(card);
|
let suit = get.suit(card);
|
||||||
if (
|
if (
|
||||||
|
@ -4286,7 +4286,7 @@ const skills = {
|
||||||
},
|
},
|
||||||
ai: {
|
ai: {
|
||||||
effect: {
|
effect: {
|
||||||
target(card, player, target) {
|
target_use(card, player, target) {
|
||||||
if (card && card.name == "qizhengxiangsheng") return "zeroplayertarget";
|
if (card && card.name == "qizhengxiangsheng") return "zeroplayertarget";
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
@ -4413,7 +4413,7 @@ const skills = {
|
||||||
global: {
|
global: {
|
||||||
ai: {
|
ai: {
|
||||||
effect: {
|
effect: {
|
||||||
player: (card, player, target) => {
|
player_use(card, player, target) {
|
||||||
let num = 0,
|
let num = 0,
|
||||||
nohave = true;
|
nohave = true;
|
||||||
game.countPlayer(i => {
|
game.countPlayer(i => {
|
||||||
|
@ -4529,7 +4529,7 @@ const skills = {
|
||||||
},
|
},
|
||||||
ai: {
|
ai: {
|
||||||
effect: {
|
effect: {
|
||||||
target(card, player, target, current, isLink) {
|
target_use(card, player, target, current, isLink) {
|
||||||
if (card.name == "sha" && !isLink && player.hp > target.hp) return 0.5;
|
if (card.name == "sha" && !isLink && player.hp > target.hp) return 0.5;
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue