Commit 245cc661 authored by SherryChaos's avatar SherryChaos

fix seminomi summon tail bug

parent fee4320a
......@@ -869,6 +869,11 @@ namespace MDPro3
RefreshData();
}
overlays = Program.I().ocgcore.GCS_GetOverlays(this);
cacheP = p;
p = gps;
if (!SemiNomiSummoned
&& (CardsManager.Get(data.Id).Type & 0x68020C0) > 0
&& (CardsManager.Get(data.Id).Type & (uint)CardType.Monster) > 0
......@@ -876,13 +881,8 @@ namespace MDPro3
)
AddStringTail(InterString.Get("帤淏寞腎部"));
else
RemoveStringTail(InterString.Get("帤淏寞腎部"));
RemoveStringTail(InterString.Get("帤淏寞腎部"), true);
overlays = Program.I().ocgcore.GCS_GetOverlays(this);
cacheP = p;
p = gps;
//Debug.LogFormat("{0}: reason: {1:X} location: {2:X}", data.Name, p.reason, p.location);
for (int i = 0; i < overlays.Count; i++)
......@@ -2574,9 +2574,9 @@ namespace MDPro3
{
tails.Add(tail);
}
public void RemoveStringTail(string tail)
public void RemoveStringTail(string tail, bool all = false)
{
tails.Remove(tail);
tails.Remove(tail, all);
}
public void ClearAllTails()
{
......
......@@ -31,7 +31,7 @@ namespace MDPro3
}
ReCreateString();
}
public void Remove(string str)
public void Remove(string str, bool all = false)
{
Part t = null;
for (var i = 0; i < strings.Count; i++)
......@@ -39,10 +39,15 @@ namespace MDPro3
t = strings[i];
if (t != null)
{
if (t.count == 1)
if(all)
strings.Remove(t);
else
t.count--;
{
if (t.count == 1)
strings.Remove(t);
else
t.count--;
}
}
ReCreateString();
}
......
......@@ -529,7 +529,7 @@ PlayerSettings:
m_APIs: 0b000000
m_Automatic: 1
- m_BuildTarget: WindowsStandaloneSupport
m_APIs: 0200000012000000150000000b000000
m_APIs: 0b000000020000001200000015000000
m_Automatic: 0
m_BuildTargetVRSettings:
- m_BuildTarget: Standalone
......
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