Commit 030e609f authored by SherryChaos's avatar SherryChaos

bug fix

parent 0fd6be1f
......@@ -4,6 +4,7 @@ MDPro3 v1.1.3更新:
3.修复SelectSum消息中,可选卡片数量为1时,点击不可选卡片会导致游戏无法继续的错误。
4.修复上版本中,更改设置中的[画面质量]导致游戏背景异常的错误。
5.修复部分情况下立绘为空白的错误。
6.修复弹窗确认卡片时,使用快捷键关闭弹窗时游戏无法继续的错误。
MDPro3 v1.1.2更新:
1.现在房主能在房间中添加AI进行游戏了。
......
This diff is collapsed.
......@@ -2812,12 +2812,22 @@ namespace MDPro3
return true;
}
public bool IsFaceDownOnSpellZone()
{
if ((p.position & (uint)CardPosition.FaceUp) > 0)
return false;
if ((p.location & (uint)CardLocation.SpellZone) == 0)
return false;
return true;
}
int setTurn = 0;
public void ShowFaceDownCardOrNot(bool show)
{
if (model == null)
return;
if (show)
if (IsFaceDownOnSpellZone())
setTurn = Program.I().ocgcore.turns;
var back = manager.GetElement<Transform>("CardModel").GetChild(0).GetComponent<Renderer>();
......
......@@ -4172,6 +4172,7 @@ namespace MDPro3
if (life0 <= 0 || life1 <= 0)
{
AudioManager.StopBGM();
OnNor();
#if UNITY_EDITOR
Program.I().timeScaleForEdit = 0.1f;
DOTween.To(() => Program.I().timeScaleForEdit, x => Program.I().timeScaleForEdit = x, 1, 0.8f).SetEase(Ease.InQuad);
......
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