Commit 7a3fc306 authored by mercury233's avatar mercury233

Merge branch 'master' of https://github.com/IceYGO/windbot

parents 13d382d4 3bb0c439
#created by ygopro2
#main
97268402
97268402
97268402
94620082
94620082
94620082
26889158
26889158
26889158
89662401
14558127
14558127
20618081
56003780
52277807
52277807
52277807
23434538
23434538
23434538
16188701
16188701
16188701
52155219
52155219
52155219
24224830
24224830
24224830
81439174
18144507
1295111
14934922
51339637
51339637
10045474
10045474
10045474
41420027
41420027
#extra
6983839
87327776
87327776
87871125
87871125
87871125
31833038
14812471
14812471
14812471
41463182
41463182
48815792
2857636
85289965
!side
64178424
......@@ -16,6 +16,15 @@ namespace WindBot.Game.AI
return 1;
}
public static int CompareCardLevel(ClientCard cardA, ClientCard cardB)
{
if (cardA.Level < cardB.Level)
return -1;
if (cardA.Level == cardB.Level)
return 0;
return 1;
}
public static int CompareDefensePower(ClientCard cardA, ClientCard cardB)
{
if (cardA == null && cardB == null)
......
This diff is collapsed.
......@@ -261,7 +261,7 @@ namespace WindBot.Game.AI
if (Duel.Player == 0)
selected = spells.FirstOrDefault(card => card.IsFacedown());
if (Duel.Player == 1)
selected = spells.FirstOrDefault(card => card.HasType(CardType.Continuous) || card.HasType(CardType.Equip));
selected = spells.FirstOrDefault(card => card.HasType(CardType.Continuous) || card.HasType(CardType.Equip) || card.HasType(CardType.Field));
}
if (selected == null)
......
......@@ -80,6 +80,7 @@
CyberDragonInfinity = 10443957,
ImperialCustom = 9995766,
InspectorBoarder = 15397015,
Mashoudou = 76375976
Mashoudou = 76375976,
EternalSoul = 48680970
}
}
......@@ -150,12 +150,12 @@ namespace WindBot.Game
public List<ClientCard> GetMonstersInExtraZone()
{
return GetMonsters().Where((card, i) => i >= 5).ToList();
return GetMonsters().Where(card => card.Sequence >= 5).ToList();
}
public List<ClientCard> GetMonstersInMainZone()
{
return GetMonsters().Where((card, i) => i < 5).ToList();
return GetMonsters().Where(card => card.Sequence < 5).ToList();
}
public ClientCard GetFieldSpellCard()
......
......@@ -68,6 +68,7 @@
<Compile Include="Game\AI\DecksManager.cs" />
<Compile Include="Game\AI\Decks\AltergeistExecutor.cs" />
<Compile Include="Game\AI\Decks\BlackwingExecutor.cs" />
<Compile Include="Game\AI\Decks\SalamangreatExecutor.cs" />
<Compile Include="Game\AI\Decks\CyberDragonExecutor.cs" />
<Compile Include="Game\AI\Decks\DarkMagicianExecutor.cs" />
<Compile Include="Game\AI\Decks\OrcustExecutor.cs" />
......
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