Commit 9b7de117 authored by mercury233's avatar mercury233

fix ZwLionArms

parent 0c575bba
......@@ -117,9 +117,10 @@ namespace DevBot.Game.AI.Decks
private bool ZwLionArms()
{
if (ActivateDescription == (int)CardId.ZwLionArms * 16 + 0 ||
ActivateDescription == (int)CardId.ZwLionArms * 16 + 1)
if (ActivateDescription == (int)CardId.ZwLionArms * 16 + 0)
return true;
if (ActivateDescription == (int)CardId.ZwLionArms * 16 + 1)
return !Card.IsDisabled();
return false;
}
......
......@@ -27,6 +27,7 @@ namespace WindBot.Game
public List<int> Overlays { get; private set; }
public int Owner { get; private set; }
public int Controller { get; private set; }
public int Disabled { get; private set; }
public int[] ActionIndex { get; set; }
public IDictionary<int, int> ActionActivateIndex { get; private set; }
......@@ -115,7 +116,7 @@ namespace WindBot.Game
if ((flag & (int)Query.Owner) != 0)
Owner = duel.GetLocalPlayer(packet.ReadInt32());
if ((flag & (int)Query.IsDisabled) != 0)
packet.ReadInt32();
Disabled = packet.ReadInt32();
if ((flag & (int)Query.IsPublic) != 0)
packet.ReadInt32();
if ((flag & (int)Query.LScale) != 0)
......@@ -174,6 +175,11 @@ namespace WindBot.Game
return HasPosition(CardPosition.Defence);
}
public bool IsDisabled()
{
return (Disabled != 0);
}
public int GetDefensePower()
{
return IsAttack() ? Attack : Defense;
......
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