c-e effect->effect_use

This commit is contained in:
157 2024-05-11 15:47:03 +08:00
parent 0209140af8
commit 7971e524b4
5 changed files with 13 additions and 13 deletions

View File

@ -932,7 +932,7 @@ const skills = {
ai: {
threaten: 3,
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;
let targets = [target],
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;
},
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];
},
},

View File

@ -759,7 +759,7 @@ const skills = {
},
},
effect: {
target(card, player, target, current) {
target_use(card, player, target, current) {
if (player == target && player.isPhaseUsing() && get.type(card) == "equip") {
if (player.hasValueTarget("sha", false) && typeof player.getStat("skill").dcbianzhuang == "number") return [1, 3];
}
@ -1645,7 +1645,7 @@ const skills = {
},
ai: {
effect: {
player(card, player, target) {
player_use(card, player, target) {
if (player !== target && get.type2(card) === "trick") {
let tars = [target];
if (ui.selected.targets.length) tars.addArray(ui.selected.targets.filter(i => i !== player && i !== target));

View File

@ -2619,7 +2619,7 @@ const skills = {
order: 10,
result: { player: 1 },
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))];
},
},

View File

@ -3176,7 +3176,7 @@ const skills = {
},
ai: {
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";
},
},
@ -4609,7 +4609,7 @@ const skills = {
},
ai: {
effect: {
target(card, player, target, current) {
target_use(card, player, target, current) {
if (get.type(card, "trick") == "trick" && _status.currentPhase == player) return "zeroplayertarget";
},
},
@ -6238,7 +6238,7 @@ const skills = {
},
ai: {
effect: {
target(card, player, target) {
target_use(card, player, target) {
if (get.tag(card, "multineg")) {
return "zerotarget";
}

View File

@ -2327,7 +2327,7 @@ const skills = {
ai: {
threaten: 1.5,
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];
},
},
@ -3297,7 +3297,7 @@ const skills = {
},
ai: {
effect: {
player: (card, player, target) => {
player_use(card, player, target) {
if (typeof card !== "object") return;
let suit = get.suit(card);
if (
@ -4286,7 +4286,7 @@ const skills = {
},
ai: {
effect: {
target(card, player, target) {
target_use(card, player, target) {
if (card && card.name == "qizhengxiangsheng") return "zeroplayertarget";
},
},
@ -4413,7 +4413,7 @@ const skills = {
global: {
ai: {
effect: {
player: (card, player, target) => {
player_use(card, player, target) {
let num = 0,
nohave = true;
game.countPlayer(i => {
@ -4529,7 +4529,7 @@ const skills = {
},
ai: {
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;
},
},