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