Commit 07a0649a authored by mercury233's avatar mercury233

minor null reference fixes

parent f740dceb
...@@ -1261,7 +1261,7 @@ namespace WindBot.Game.AI.Decks ...@@ -1261,7 +1261,7 @@ namespace WindBot.Game.AI.Decks
private bool RedWyverneff() private bool RedWyverneff()
{ {
IList<ClientCard> check = Enemy.MonsterZone; IList<ClientCard> check = Enemy.GetMonsters();
ClientCard best = null; ClientCard best = null;
foreach (ClientCard monster in check) foreach (ClientCard monster in check)
{ {
......
...@@ -842,14 +842,17 @@ namespace WindBot.Game.AI ...@@ -842,14 +842,17 @@ namespace WindBot.Game.AI
{ {
if (monster.HasType(CardType.Tuner)) if (monster.HasType(CardType.Tuner))
tuner = true; tuner = true;
else if (!monster.HasType(CardType.Xyz)) else if (!monster.HasType(CardType.Xyz) && !monster.HasType(CardType.Link))
{
nontuner = true; nontuner = true;
levels[monster.Level] = levels[monster.Level] + 1;
}
if (monster.IsOneForXyz()) if (monster.IsOneForXyz())
{ {
AI.SelectOption(XYZ); AI.SelectOption(XYZ);
return true; return true;
} }
levels[monster.Level] = levels[monster.Level] + 1;
} }
if (tuner && nontuner) if (tuner && nontuner)
{ {
......
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