Commit 9b7de117 authored by mercury233's avatar mercury233

fix ZwLionArms

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