卡牌成为目标技能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: {
effect: {
target: function (card, player, target, current) {
target_use(card, player, target, current) {
if (target.hasSkillTag("unequip2")) return;
if (
player.hasSkillTag("unequip", false, {

View File

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

View File

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

View File

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

View File

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