Commit 0542a595 authored by mercury233's avatar mercury233

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

parents 66d208f0 87e802b1
...@@ -230,6 +230,9 @@ namespace WindBot.Game.AI.Decks ...@@ -230,6 +230,9 @@ namespace WindBot.Game.AI.Decks
} }
private bool UnendingNightmareeff() private bool UnendingNightmareeff()
{ {
if (Card.IsDisabled()){
return false;
}
ClientCard card = null; ClientCard card = null;
foreach(ClientCard check in Enemy.GetSpells()) foreach(ClientCard check in Enemy.GetSpells())
{ {
...@@ -724,4 +727,4 @@ namespace WindBot.Game.AI.Decks ...@@ -724,4 +727,4 @@ namespace WindBot.Game.AI.Decks
return true; return true;
} }
} }
} }
\ No newline at end of file
...@@ -197,6 +197,7 @@ namespace WindBot.Game.AI.Decks ...@@ -197,6 +197,7 @@ namespace WindBot.Game.AI.Decks
bool MagicianRightHand_used = false; bool MagicianRightHand_used = false;
ClientCard MagiciansLeftHand_negate = null; ClientCard MagiciansLeftHand_negate = null;
ClientCard MagicianRightHand_negate = null; ClientCard MagicianRightHand_negate = null;
int PSYOmega_count = 0;
// go first // go first
public override bool OnSelectHand() public override bool OnSelectHand()
...@@ -282,7 +283,8 @@ namespace WindBot.Game.AI.Decks ...@@ -282,7 +283,8 @@ namespace WindBot.Game.AI.Decks
FirstCheckSS.Clear(); FirstCheckSS.Clear();
UseSSEffect.Clear(); UseSSEffect.Clear();
ActivatedCards.Clear(); ActivatedCards.Clear();
// CalledbytheGrave刷新 int PSYOmega_count = 0;
// CalledbytheGrave refrest
List<int> key_list = CalledbytheGraveCount.Keys.ToList(); List<int> key_list = CalledbytheGraveCount.Keys.ToList();
foreach (int dic in key_list) foreach (int dic in key_list)
{ {
...@@ -2501,15 +2503,20 @@ namespace WindBot.Game.AI.Decks ...@@ -2501,15 +2503,20 @@ namespace WindBot.Game.AI.Decks
// recycle from grave // recycle from grave
if (Card.Location == CardLocation.Grave) if (Card.Location == CardLocation.Grave)
{ {
if (PSYOmega_count >= 5){
return false;
}
List<ClientCard> enemy_danger = CheckDangerousCardinEnemyGrave(); List<ClientCard> enemy_danger = CheckDangerousCardinEnemyGrave();
if (enemy_danger.Count > 0) if (enemy_danger.Count > 0)
{ {
AI.SelectCard(enemy_danger); AI.SelectCard(enemy_danger);
PSYOmega_count ++;
return true; return true;
} }
if (!Bot.HasInHandOrInSpellZoneOrInGraveyard(CardId.Holiday) && Bot.HasInGraveyard(important_witchcraft)) if (!Bot.HasInHandOrInSpellZoneOrInGraveyard(CardId.Holiday) && Bot.HasInGraveyard(important_witchcraft))
{ {
AI.SelectCard(important_witchcraft); AI.SelectCard(important_witchcraft);
PSYOmega_count ++;
return true; return true;
} }
if (CheckProblematicCards() == null) if (CheckProblematicCards() == null)
...@@ -2518,6 +2525,7 @@ namespace WindBot.Game.AI.Decks ...@@ -2518,6 +2525,7 @@ namespace WindBot.Game.AI.Decks
CardId.MaxxC, CardId.AshBlossom_JoyousSpring, CardId.MaxxC, CardId.AshBlossom_JoyousSpring,
CardId.MagicianRightHand, CardId.MagiciansLeftHand, CardId.MagiciansRestage, CardId.Patronus, CardId.MagicianRightHand, CardId.MagiciansLeftHand, CardId.MagiciansRestage, CardId.Patronus,
CardId.LightningStorm, CardId.Reasoning); CardId.LightningStorm, CardId.Reasoning);
PSYOmega_count ++;
return true; return true;
} }
} }
......
...@@ -127,6 +127,11 @@ WindBot can run as a "server", provide a http interface to create bot. ...@@ -127,6 +127,11 @@ WindBot can run as a "server", provide a http interface to create bot.
* Nekroz * Nekroz
### AI Template Generator
A Java program which generate executor code from deck, made by Levyaton.
https://github.com/Levyaton/WindbotTemplateGenerator
### Server mode ### Server mode
WindBot can run as a "server", provide a http interface to create bot. WindBot can run as a "server", provide a http interface to create bot.
......
...@@ -22,7 +22,7 @@ namespace WindBot ...@@ -22,7 +22,7 @@ namespace WindBot
Host = "127.0.0.1"; Host = "127.0.0.1";
Port = 7911; Port = 7911;
HostInfo = ""; HostInfo = "";
Version = 0x1351; Version = 0x1352;
Hand = 0; Hand = 0;
Debug = false; Debug = false;
Chat = true; Chat = 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