Commit 37a69243 authored by SherryChaos's avatar SherryChaos

duel hint bug fix

parent 8d6b3879
...@@ -131,7 +131,7 @@ namespace MDPro3 ...@@ -131,7 +131,7 @@ namespace MDPro3
cardMatShine = Instantiate(cardMatRoyal); cardMatShine = Instantiate(cardMatRoyal);
cardMatRoyal.SetTexture("_HighlightNormal", container.CardKiraNormal03_Millennium); cardMatRoyal.SetTexture("_HighlightNormal", container.CardKiraNormal03_Millennium);
cardMatRoyal.SetTexture("_Kira02_01", container.CardKira3_Millennium); //cardMatRoyal.SetTexture("_Kira02_01", container.CardKira3_Millennium);
cardMatRoyal.SetTexture("_Texture2DAsset_3e204bf62e854283be7482d92655b24f_Out_0", container.CardKiraNormal03_Millennium); cardMatRoyal.SetTexture("_Texture2DAsset_3e204bf62e854283be7482d92655b24f_Out_0", container.CardKiraNormal03_Millennium);
#if UNITY_ANDROID #if UNITY_ANDROID
var depens = Directory.GetFiles(Program.root + "CrossDuel/Dependency", "*.bundle"); var depens = Directory.GetFiles(Program.root + "CrossDuel/Dependency", "*.bundle");
......
...@@ -6011,30 +6011,28 @@ namespace MDPro3 ...@@ -6011,30 +6011,28 @@ namespace MDPro3
if (card != null) if (card != null)
{ {
var displayname = "「" + card.GetData().Name + "」"; var displayname = "「" + card.GetData().Name + "」";
var forReplaceFirst = new Regex("\\[%ls\\]");
if (cr == 0) if (cr == 0)
{ {
desc = StringHelper.Get(200);//是否在[%ls]发动[%ls]的效果? desc = StringHelper.Get(200);//是否在[%ls]发动[%ls]的效果?
var forReplaceFirst = new Regex("\\[%ls\\]");
desc = forReplaceFirst.Replace(desc, StringHelper.FormatLocation(gps), 1); desc = forReplaceFirst.Replace(desc, StringHelper.FormatLocation(gps), 1);
desc = forReplaceFirst.Replace(desc, displayname, 1); desc = ES_hint + "," + forReplaceFirst.Replace(desc, displayname, 1);
} }
else if (cr == 221) else if (cr == 221)
{ {
desc = StringHelper.Get(221);//是否在[%ls]发动[%ls]的诱发类效果? desc = StringHelper.Get(221);//是否在[%ls]发动[%ls]的诱发类效果?
var forReplaceFirst = new Regex("\\[%ls\\]");
desc = forReplaceFirst.Replace(desc, StringHelper.FormatLocation(gps), 1); desc = forReplaceFirst.Replace(desc, StringHelper.FormatLocation(gps), 1);
desc = forReplaceFirst.Replace(desc, displayname, 1); desc = forReplaceFirst.Replace(desc, displayname, 1);
desc = desc + "\n" + StringHelper.Get(223);//稍后将询问其他可以发动的效果。 desc = ES_hint + "," + desc + "\n" + StringHelper.Get(223);//稍后将询问其他可以发动的效果。
} }
else else
{ {
desc = StringHelper.Get(cr); desc = StringHelper.Get(cr);
var forReplaceFirst = new Regex("\\[%ls\\]");
desc = forReplaceFirst.Replace(desc, displayname, 1); desc = forReplaceFirst.Replace(desc, displayname, 1);
} }
List<GameCard> oneCardToSend = new List<GameCard>() { card }; List<GameCard> oneCardToSend = new List<GameCard>() { card };
ShowPopupSelectCard(ES_hint + "," + desc, oneCardToSend, 1, 1, true, false); ShowPopupSelectCard(desc, oneCardToSend, 1, 1, true, false);
} }
break; break;
case GameMessage.SelectChain: case GameMessage.SelectChain:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment