修复技能发动阴阳配音相反的bug

添加dcsbyingmou和dcsbmengmoucontent中logSkill的yield
This commit is contained in:
mengxinzxz 2024-05-01 12:43:02 +08:00
parent 46e43d6b6e
commit 820fa2273e
1 changed files with 3 additions and 3 deletions

View File

@ -2367,7 +2367,7 @@ game.import("character", function () {
if (result.bool) { if (result.bool) {
var target = result.targets[0]; var target = result.targets[0];
if (storage) { if (storage) {
player.logSkill("dcsbyingmou", result.targets, false); yield player.logSkill("dcsbyingmou", result.targets, false);
player.line2(result.targets); player.line2(result.targets);
player.changeZhuanhuanji("dcsbyingmou"); player.changeZhuanhuanji("dcsbyingmou");
player.changeSkin("dcsbyingmou", "dc_sb_zhouyu" + (player.storage.dcsbyingmou ? "_shadow" : "")); player.changeSkin("dcsbyingmou", "dc_sb_zhouyu" + (player.storage.dcsbyingmou ? "_shadow" : ""));
@ -2385,7 +2385,7 @@ game.import("character", function () {
} }
if (discard && player.countCards("h") < source.countCards("h")) source.chooseToDiscard(source.countCards("h") - player.countCards("h"), "h", true); if (discard && player.countCards("h") < source.countCards("h")) source.chooseToDiscard(source.countCards("h") - player.countCards("h"), "h", true);
} else { } else {
player.logSkill("dcsbyingmou", target); yield player.logSkill("dcsbyingmou", target);
player.changeZhuanhuanji("dcsbyingmou"); player.changeZhuanhuanji("dcsbyingmou");
player.changeSkin("dcsbyingmou", "dc_sb_zhouyu" + (player.storage.dcsbyingmou ? "_shadow" : "")); player.changeSkin("dcsbyingmou", "dc_sb_zhouyu" + (player.storage.dcsbyingmou ? "_shadow" : ""));
if (player.countCards("h") < target.countCards("h")) player.draw(Math.min(5, target.countCards("h") - player.countCards("h"))); if (player.countCards("h") < target.countCards("h")) player.draw(Math.min(5, target.countCards("h") - player.countCards("h")));
@ -2590,7 +2590,7 @@ game.import("character", function () {
} }
if (result.bool) { if (result.bool) {
if (!target) target = result.targets[0]; if (!target) target = result.targets[0];
player.logSkill("dcsbmengmou", target); yield player.logSkill("dcsbmengmou", target);
player.addTempSkill("dcsbmengmou_" + (storage || false)); player.addTempSkill("dcsbmengmou_" + (storage || false));
player.changeZhuanhuanji("dcsbmengmou"); player.changeZhuanhuanji("dcsbmengmou");
//鲁肃暂时没有另一张原画(悲 //鲁肃暂时没有另一张原画(悲