Commit a06f49f8 authored by mercury233's avatar mercury233

fix DefaultSpellMustSetFirst

parent cca52fb0
...@@ -662,7 +662,7 @@ namespace WindBot.Game.AI ...@@ -662,7 +662,7 @@ namespace WindBot.Game.AI
/// </summary> /// </summary>
protected bool DefaultSpellSet() protected bool DefaultSpellSet()
{ {
return (Card.IsTrap() || Card.HasType(CardType.QuickPlay)) && Bot.GetSpellCountWithoutField() < 4; return (Card.IsTrap() || Card.HasType(CardType.QuickPlay) || DefaultSpellMustSetFirst()) && Bot.GetSpellCountWithoutField() < 4;
} }
/// <summary> /// <summary>
...@@ -737,14 +737,6 @@ namespace WindBot.Game.AI ...@@ -737,14 +737,6 @@ namespace WindBot.Game.AI
/// </summary> /// </summary>
protected bool DefaultSpellMustSetFirst() protected bool DefaultSpellMustSetFirst()
{ {
ClientCard card = null;
foreach (ClientCard check in Bot.GetSpells())
{
if (check.IsCode(_CardId.AntiSpellFragrance) && !check.IsDisabled())
card = check;
}
if (card != null && card.IsFaceup())
return true;
return Bot.HasInSpellZone(_CardId.AntiSpellFragrance, true, true) || Enemy.HasInSpellZone(_CardId.AntiSpellFragrance, true); return Bot.HasInSpellZone(_CardId.AntiSpellFragrance, true, true) || Enemy.HasInSpellZone(_CardId.AntiSpellFragrance, true);
} }
......
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