修复【越行】

This commit is contained in:
157 2024-05-06 14:44:20 +08:00
parent 15b0f30fcf
commit ac3346ac47
2 changed files with 3 additions and 4 deletions

View File

@ -6257,8 +6257,7 @@ const skills = {
var history = current.getHistory("useCard");
if (!history.length) return false;
for (var evt of history) {
if (evt.getParent("phaseUse") !== event) return false;
if (evt.card && evt.card.name == "shunshou") {
if (evt.card && evt.card.name == "shunshou" && evt.getParent("phaseUse") === event.getParent("phaseUse")) {
targets.addArray(evt.targets);
}
}

View File

@ -308,9 +308,9 @@ game.import("character", function () {
},
content: function () {
player.storage.yuexing2 = target;
player.addTempSkill("yuexing2");
player.addTempSkill("yuexing2", "phaseUseAfter");
target.storage.yuexing2 = player;
target.addTempSkill("yuexing2");
target.addTempSkill("yuexing2", "phaseUseAfter");
},
ai: {
order: function () {