Commit 07a0649a authored by mercury233's avatar mercury233

minor null reference fixes

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