Commit 20916c38 authored by kiwi946's avatar kiwi946 Committed by mercury233

Dark magician fix (#115)

parent 3fc0fca5
...@@ -367,18 +367,19 @@ namespace WindBot.Game.AI.Decks ...@@ -367,18 +367,19 @@ namespace WindBot.Game.AI.Decks
private bool WindwitchSnowBellsp() private bool WindwitchSnowBellsp()
{ {
if (maxxc_used) return false;
if (Bot.HasInMonstersZone(CardId.WindwitchIceBell) && if (Bot.HasInMonstersZone(CardId.WindwitchIceBell) &&
Bot.HasInMonstersZone(CardId.WindwitchGlassBell)) Bot.HasInMonstersZone(CardId.WindwitchGlassBell))
{ {
AI.SelectPosition(CardPosition.FaceUpDefence); AI.SelectPosition(CardPosition.FaceUpDefence);
return true; return true;
} }
return false; return false;
} }
private bool WindwitchWinterBellsp() private bool WindwitchWinterBellsp()
{ {
if (maxxc_used) return false;
if (Bot.HasInMonstersZone(CardId.WindwitchIceBell) && if (Bot.HasInMonstersZone(CardId.WindwitchIceBell) &&
Bot.HasInMonstersZone(CardId.WindwitchGlassBell) && Bot.HasInMonstersZone(CardId.WindwitchGlassBell) &&
Bot.HasInMonstersZone(CardId.WindwitchSnowBell)) Bot.HasInMonstersZone(CardId.WindwitchSnowBell))
...@@ -1622,7 +1623,8 @@ namespace WindBot.Game.AI.Decks ...@@ -1622,7 +1623,8 @@ namespace WindBot.Game.AI.Decks
if (Bot.SpellZone[i] != null) if (Bot.SpellZone[i] != null)
Logger.DebugWriteLine("++++++++SpellZone[" + i + "]= " + Bot.SpellZone[i].Id); Logger.DebugWriteLine("++++++++SpellZone[" + i + "]= " + Bot.SpellZone[i].Id);
}*/ }*/
if (Util.ChainContainsCard(CardId.MaxxC))
maxxc_used = true;
if ((Duel.CurrentChain.Count >= 1 && Util.GetLastChainCard().Id == 0) || if ((Duel.CurrentChain.Count >= 1 && Util.GetLastChainCard().Id == 0) ||
(Duel.CurrentChain.Count == 2 && !Util.ChainContainPlayer(0) && Duel.CurrentChain[0].Id == 0)) (Duel.CurrentChain.Count == 2 && !Util.ChainContainPlayer(0) && Duel.CurrentChain[0].Id == 0))
{ {
......
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