卡牌成为目标技能effect改effect_use

This commit is contained in:
157 2024-05-11 15:28:14 +08:00
parent 9287cd33c0
commit 0209140af8
5 changed files with 9 additions and 9 deletions

View File

@ -922,7 +922,7 @@ game.import("card", function () {
}, },
ai: { ai: {
effect: { effect: {
target: function (card, player, target, current) { target_use(card, player, target, current) {
if (target.hasSkillTag("unequip2")) return; if (target.hasSkillTag("unequip2")) return;
if ( if (
player.hasSkillTag("unequip", false, { player.hasSkillTag("unequip", false, {

View File

@ -1523,7 +1523,7 @@ game.import("card", function () {
}, },
ai: { ai: {
effect: { effect: {
target: function (card, player, target, current) { target_use(card, player, target, current) {
if ( if (
["huoshaolianying", "huogong"].includes(card.name) || ["huoshaolianying", "huogong"].includes(card.name) ||
(card.name == "sha" && game.hasNature(card, "fire")) (card.name == "sha" && game.hasNature(card, "fire"))
@ -1575,7 +1575,7 @@ game.import("card", function () {
g_dinglanyemingzhu_ai: { g_dinglanyemingzhu_ai: {
ai: { ai: {
effect: { effect: {
player: function (card, player) { player_use(card, player) {
if (player.hasSkill("jubao")) return; if (player.hasSkill("jubao")) return;
if ( if (
card.name == "dinglanyemingzhu" && card.name == "dinglanyemingzhu" &&
@ -1592,7 +1592,7 @@ game.import("card", function () {
g_feilongduofeng_ai: { g_feilongduofeng_ai: {
ai: { ai: {
effect: { effect: {
player: function (card, player) { player_use(card, player) {
if (player.hasSkill("zhangwu")) return; if (player.hasSkill("zhangwu")) return;
if ( if (
card.name == "feilongduofeng" && card.name == "feilongduofeng" &&
@ -1609,7 +1609,7 @@ game.import("card", function () {
g_taipingyaoshu_ai: { g_taipingyaoshu_ai: {
ai: { ai: {
effect: { effect: {
player: function (card, player) { player_use(card, player) {
if (player.hasSkill("wendao")) return; if (player.hasSkill("wendao")) return;
if ( if (
card.name == "taipingyaoshu" && card.name == "taipingyaoshu" &&
@ -1620,7 +1620,7 @@ game.import("card", function () {
return [0, 0, 0, 0]; return [0, 0, 0, 0];
} }
}, },
target: (card, player, target) => { target_use(card, player, target) {
if (target._g_taipingyaoshu_temp) return; if (target._g_taipingyaoshu_temp) return;
if ( if (
get.subtype(card) === "equip2" && get.subtype(card) === "equip2" &&

View File

@ -2001,7 +2001,7 @@ game.import("card", function () {
ai: { ai: {
weather: true, weather: true,
effect: { effect: {
player: function (card, player) { player_use(card, player) {
if (!player.needsToDiscard()) return "zeroplayertarget"; if (!player.needsToDiscard()) return "zeroplayertarget";
}, },
}, },

View File

@ -3117,7 +3117,7 @@ game.import("card", function () {
}, },
ai: { ai: {
effect: { effect: {
target: function (card, player, target) { target_use(card, player, target) {
if (typeof card !== "object" || target.hasSkillTag("unequip2")) return; if (typeof card !== "object" || target.hasSkillTag("unequip2")) return;
if ( if (
player.hasSkillTag("unequip", false, { player.hasSkillTag("unequip", false, {

View File

@ -754,7 +754,7 @@ game.import("card", function () {
heiguangkai_ai: { heiguangkai_ai: {
ai: { ai: {
effect: { effect: {
player: function (card, player, target) { player_use(card, player, target) {
if ( if (
typeof card !== "object" || typeof card !== "object" ||
!target || !target ||