Commit 876cc5ed authored by SherryChaos's avatar SherryChaos

bug fix

parent 03c94125
This diff is collapsed.
fileFormatVersion: 2
guid: ccacb799c44db844a8d445541d8a176c
TextScriptImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
...@@ -1658,12 +1658,17 @@ namespace MDPro3 ...@@ -1658,12 +1658,17 @@ namespace MDPro3
} }
} }
bool CurrentChainDisabled() bool CurrentChainDisabled(int currentChain)
{ {
for(int i = 0; i < packages.Count; i++) for(int i = 0; i < packages.Count; i++)
{ {
if ((GameMessage)packages[i].Function == GameMessage.ChainDisabled) if ((GameMessage)packages[i].Function == GameMessage.ChainDisabled)
return true; {
var r = packages[i].Data.reader;
r.BaseStream.Seek(0, 0);
if(r.ReadByte() == currentChain)
return true;
}
if ((GameMessage)packages[i].Function == GameMessage.ChainSolved) if ((GameMessage)packages[i].Function == GameMessage.ChainSolved)
return false; return false;
} }
...@@ -3480,7 +3485,7 @@ namespace MDPro3 ...@@ -3480,7 +3485,7 @@ namespace MDPro3
messagePass = true; messagePass = true;
return; return;
} }
if (needPlay && CurrentChainDisabled()) if (needPlay && CurrentChainDisabled(id))
{ {
needPlay = false; needPlay = false;
messagePass = true; messagePass = true;
...@@ -3767,7 +3772,6 @@ namespace MDPro3 ...@@ -3767,7 +3772,6 @@ namespace MDPro3
{ {
Destroy(effect); Destroy(effect);
messagePass = true; messagePass = true;
Debug.Log("Engage is Negated: " + card.negated);
nextMoveAction = () => nextMoveAction = () =>
{ {
var effect = ABLoader.LoadFromFolder("MasterDuel/Card/" + code, "CardEffect" + code, true); var effect = ABLoader.LoadFromFolder("MasterDuel/Card/" + code, "CardEffect" + code, true);
......
...@@ -551,7 +551,7 @@ PlayerSettings: ...@@ -551,7 +551,7 @@ PlayerSettings:
m_APIs: 0b000000 m_APIs: 0b000000
m_Automatic: 1 m_Automatic: 1
- m_BuildTarget: WindowsStandaloneSupport - m_BuildTarget: WindowsStandaloneSupport
m_APIs: 1500000002000000 m_APIs: 0200000015000000
m_Automatic: 0 m_Automatic: 0
m_BuildTargetVRSettings: m_BuildTargetVRSettings:
- m_BuildTarget: Standalone - 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