Commit ae35f2ac authored by mercury233's avatar mercury233

disable not implemented selectplace releated stuff

parent f3e2b847
...@@ -162,6 +162,7 @@ namespace WindBot.Game.AI.Decks ...@@ -162,6 +162,7 @@ namespace WindBot.Game.AI.Decks
private void EternalSoulSelect() private void EternalSoulSelect()
{ {
AI.SelectPosition(CardPosition.FaceUpAttack); AI.SelectPosition(CardPosition.FaceUpAttack);
/*
if (Enemy.HasInMonstersZone(CardId.MekkKnightMorningStar)) if (Enemy.HasInMonstersZone(CardId.MekkKnightMorningStar))
{ {
int MekkKnightZone = 0; int MekkKnightZone = 0;
...@@ -209,7 +210,7 @@ namespace WindBot.Game.AI.Decks ...@@ -209,7 +210,7 @@ namespace WindBot.Game.AI.Decks
} }
} }
} }
*/
} }
int attackerzone = -1; int attackerzone = -1;
int defenderzone = -1; int defenderzone = -1;
...@@ -335,7 +336,7 @@ namespace WindBot.Game.AI.Decks ...@@ -335,7 +336,7 @@ namespace WindBot.Game.AI.Decks
if (Enemy.HasInMonstersZone(CardId.ElShaddollWinda)) return false; if (Enemy.HasInMonstersZone(CardId.ElShaddollWinda)) return false;
if (maxxc_used) return false; if (maxxc_used) return false;
if (WindwitchGlassBelleff_used) return false; if (WindwitchGlassBelleff_used) return false;
AI.SelectPlace(Zones.z2, 1); //AI.SelectPlace(Zones.z2, 1);
if (Bot.GetRemainingCount(CardId.WindwitchGlassBell, 2) >= 1) if (Bot.GetRemainingCount(CardId.WindwitchGlassBell, 2) >= 1)
AI.SelectCard(CardId.WindwitchGlassBell); AI.SelectCard(CardId.WindwitchGlassBell);
else if (Bot.HasInHand(CardId.WindwitchGlassBell)) else if (Bot.HasInHand(CardId.WindwitchGlassBell))
...@@ -383,7 +384,7 @@ namespace WindBot.Game.AI.Decks ...@@ -383,7 +384,7 @@ namespace WindBot.Game.AI.Decks
Bot.HasInMonstersZone(CardId.WindwitchGlassBell) && Bot.HasInMonstersZone(CardId.WindwitchGlassBell) &&
Bot.HasInMonstersZone(CardId.WindwitchSnowBell)) Bot.HasInMonstersZone(CardId.WindwitchSnowBell))
{ {
AI.SelectPlace(Zones.z5, Zones.ExtraMonsterZones); //AI.SelectPlace(Zones.z5, Zones.ExtraMonsterZones);
AI.SelectCard(new[] { CardId.WindwitchIceBell, CardId.WindwitchGlassBell }); AI.SelectCard(new[] { CardId.WindwitchIceBell, CardId.WindwitchGlassBell });
AI.SelectPosition(CardPosition.FaceUpAttack); AI.SelectPosition(CardPosition.FaceUpAttack);
return true; return true;
...@@ -425,7 +426,7 @@ namespace WindBot.Game.AI.Decks ...@@ -425,7 +426,7 @@ namespace WindBot.Game.AI.Decks
{ {
if (Bot.HasInMonstersZone(CardId.WindwitchSnowBell) && Bot.HasInMonstersZone(CardId.WindwitchWinterBell)) if (Bot.HasInMonstersZone(CardId.WindwitchSnowBell) && Bot.HasInMonstersZone(CardId.WindwitchWinterBell))
{ {
AI.SelectPlace(Zones.z5, Zones.ExtraMonsterZones); //AI.SelectPlace(Zones.z5, Zones.ExtraMonsterZones);
plan_A = true; plan_A = true;
return true; return true;
} }
...@@ -904,7 +905,7 @@ namespace WindBot.Game.AI.Decks ...@@ -904,7 +905,7 @@ namespace WindBot.Game.AI.Decks
{ {
if (Card.Location == CardLocation.Hand) if (Card.Location == CardLocation.Hand)
{ {
AI.SelectPlace(Zones.z2, 2); //AI.SelectPlace(Zones.z2, 2);
if (Bot.LifePoints <= 4000) if (Bot.LifePoints <= 4000)
return true; return true;
return UniqueFaceupSpell(); return UniqueFaceupSpell();
...@@ -936,7 +937,7 @@ namespace WindBot.Game.AI.Decks ...@@ -936,7 +937,7 @@ namespace WindBot.Game.AI.Decks
if (Duel.LastChainPlayer == 0) return false; if (Duel.LastChainPlayer == 0) return false;
ClientCard target = null; ClientCard target = null;
bool soul_exist = false; bool soul_exist = false;
AI.SelectPlace(Zones.z2, 2); //AI.SelectPlace(Zones.z2, 2);
foreach (ClientCard m in Bot.GetSpells()) foreach (ClientCard m in Bot.GetSpells())
{ {
if (m.Id == CardId.EternalSoul && m.IsFaceup()) if (m.Id == CardId.EternalSoul && m.IsFaceup())
...@@ -1050,19 +1051,19 @@ namespace WindBot.Game.AI.Decks ...@@ -1050,19 +1051,19 @@ namespace WindBot.Game.AI.Decks
private bool TheEyeOfTimaeuseff() private bool TheEyeOfTimaeuseff()
{ {
AI.SelectPlace(Zones.z2, 2); //AI.SelectPlace(Zones.z2, 2);
return true; return true;
} }
private bool UpstartGoblineff() private bool UpstartGoblineff()
{ {
AI.SelectPlace(Zones.z2, 2); //AI.SelectPlace(Zones.z2, 2);
return true; return true;
} }
private bool SpellbookOfSecreteff() private bool SpellbookOfSecreteff()
{ {
if (lockbird_used) return false; if (lockbird_used) return false;
AI.SelectPlace(Zones.z2, 2); //AI.SelectPlace(Zones.z2, 2);
Secret_used = true; Secret_used = true;
if (Bot.HasInHand(CardId.SpellbookMagicianOfProphecy)) if (Bot.HasInHand(CardId.SpellbookMagicianOfProphecy))
AI.SelectCard(CardId.SpellbookOfKnowledge); AI.SelectCard(CardId.SpellbookOfKnowledge);
...@@ -1083,7 +1084,7 @@ namespace WindBot.Game.AI.Decks ...@@ -1083,7 +1084,7 @@ namespace WindBot.Game.AI.Decks
if (lockbird_used) return false; if (lockbird_used) return false;
if (Bot.HasInSpellZone(CardId.LllusionMagic) && count < 2) if (Bot.HasInSpellZone(CardId.LllusionMagic) && count < 2)
return false; return false;
AI.SelectPlace(Zones.z2, 2); //AI.SelectPlace(Zones.z2, 2);
if (Bot.HasInMonstersZone(CardId.SpellbookMagicianOfProphecy) || if (Bot.HasInMonstersZone(CardId.SpellbookMagicianOfProphecy) ||
Bot.HasInMonstersZone(CardId.MagiciansRod) || Bot.HasInMonstersZone(CardId.MagiciansRod) ||
Bot.HasInMonstersZone(CardId.WindwitchGlassBell) || Bot.HasInMonstersZone(CardId.WindwitchGlassBell) ||
...@@ -1125,7 +1126,7 @@ namespace WindBot.Game.AI.Decks ...@@ -1125,7 +1126,7 @@ namespace WindBot.Game.AI.Decks
{ {
if (Bot.HasInSpellZone(CardId.LllusionMagic) && count < 2) if (Bot.HasInSpellZone(CardId.LllusionMagic) && count < 2)
return false; return false;
AI.SelectPlace(Zones.z2, 2); //AI.SelectPlace(Zones.z2, 2);
if (Bot.HasInMonstersZone(CardId.SpellbookMagicianOfProphecy) || if (Bot.HasInMonstersZone(CardId.SpellbookMagicianOfProphecy) ||
Bot.HasInMonstersZone(CardId.MagiciansRod) || Bot.HasInMonstersZone(CardId.MagiciansRod) ||
Bot.HasInMonstersZone(CardId.WindwitchGlassBell) || Bot.HasInMonstersZone(CardId.WindwitchGlassBell) ||
...@@ -1180,7 +1181,7 @@ namespace WindBot.Game.AI.Decks ...@@ -1180,7 +1181,7 @@ namespace WindBot.Game.AI.Decks
private bool ApprenticeLllusionMagiciansp() private bool ApprenticeLllusionMagiciansp()
{ {
AI.SelectPlace(Zones.z2, 1); //AI.SelectPlace(Zones.z2, 1);
if (Bot.HasInHand(CardId.DarkMagician) && !Bot.HasInSpellZone(CardId.MagicianNavigation)) if (Bot.HasInHand(CardId.DarkMagician) && !Bot.HasInSpellZone(CardId.MagicianNavigation))
{ {
if (Bot.GetRemainingCount(CardId.DarkMagician, 3) > 0) if (Bot.GetRemainingCount(CardId.DarkMagician, 3) > 0)
...@@ -1288,7 +1289,7 @@ namespace WindBot.Game.AI.Decks ...@@ -1288,7 +1289,7 @@ namespace WindBot.Game.AI.Decks
} }
private bool SpellbookMagicianOfProphecysummon() private bool SpellbookMagicianOfProphecysummon()
{ {
AI.SelectPlace(Zones.z2, 1); //AI.SelectPlace(Zones.z2, 1);
if (lockbird_used) return false; if (lockbird_used) return false;
if (Spellbook_summon) if (Spellbook_summon)
{ {
...@@ -1303,14 +1304,14 @@ namespace WindBot.Game.AI.Decks ...@@ -1303,14 +1304,14 @@ namespace WindBot.Game.AI.Decks
private bool MagiciansRodsummon() private bool MagiciansRodsummon()
{ {
if (lockbird_used) return false; if (lockbird_used) return false;
AI.SelectPlace(Zones.z2, 1); //AI.SelectPlace(Zones.z2, 1);
if (Rod_summon) return true; if (Rod_summon) return true;
return true; return true;
} }
private bool DarkMagicAttackeff() private bool DarkMagicAttackeff()
{ {
AI.SelectPlace(Zones.z1, 2); //AI.SelectPlace(Zones.z1, 2);
return DefaultHarpiesFeatherDusterFirst(); return DefaultHarpiesFeatherDusterFirst();
} }
private bool DarkMagicInheritanceeff() private bool DarkMagicInheritanceeff()
...@@ -1329,7 +1330,7 @@ namespace WindBot.Game.AI.Decks ...@@ -1329,7 +1330,7 @@ namespace WindBot.Game.AI.Decks
} }
if (count >= 2) if (count >= 2)
{ {
AI.SelectPlace(Zones.z2, 2); //AI.SelectPlace(Zones.z2, 2);
AI.SelectCard(spell); AI.SelectCard(spell);
if (Bot.HasInHandOrInSpellZone(CardId.EternalSoul) && Bot.HasInHandOrInSpellZone(CardId.DarkMagicalCircle)) if (Bot.HasInHandOrInSpellZone(CardId.EternalSoul) && Bot.HasInHandOrInSpellZone(CardId.DarkMagicalCircle))
if (Bot.GetRemainingCount(CardId.DarkMagician, 3) >= 2 && !Bot.HasInHandOrInSpellZoneOrInGraveyard(CardId.LllusionMagic)) if (Bot.GetRemainingCount(CardId.DarkMagician, 3) >= 2 && !Bot.HasInHandOrInSpellZoneOrInGraveyard(CardId.LllusionMagic))
...@@ -1549,7 +1550,7 @@ namespace WindBot.Game.AI.Decks ...@@ -1549,7 +1550,7 @@ namespace WindBot.Game.AI.Decks
if (lockbird_used) return false; if (lockbird_used) return false;
if (!plan_A && (Bot.HasInGraveyard(CardId.WindwitchGlassBell) || Bot.HasInMonstersZone(CardId.WindwitchGlassBell))) if (!plan_A && (Bot.HasInGraveyard(CardId.WindwitchGlassBell) || Bot.HasInMonstersZone(CardId.WindwitchGlassBell)))
return false; return false;
AI.SelectPlace(Zones.z2, 1); //AI.SelectPlace(Zones.z2, 1);
if (GlassBell_summon && Bot.HasInMonstersZone(CardId.WindwitchIceBell) && if (GlassBell_summon && Bot.HasInMonstersZone(CardId.WindwitchIceBell) &&
!Bot.HasInMonstersZone(CardId.WindwitchGlassBell)) !Bot.HasInMonstersZone(CardId.WindwitchGlassBell))
return true; return true;
...@@ -1563,7 +1564,7 @@ namespace WindBot.Game.AI.Decks ...@@ -1563,7 +1564,7 @@ namespace WindBot.Game.AI.Decks
if (AI.Utils.IsOneEnemyBetterThanValue(2500, false) && if (AI.Utils.IsOneEnemyBetterThanValue(2500, false) &&
!Bot.HasInHandOrHasInMonstersZone(CardId.ApprenticeLllusionMagician)) !Bot.HasInHandOrHasInMonstersZone(CardId.ApprenticeLllusionMagician))
{ {
AI.SelectPlace(Zones.z5, Zones.ExtraMonsterZones); //AI.SelectPlace(Zones.z5, Zones.ExtraMonsterZones);
AI.SelectPosition(CardPosition.FaceUpAttack); AI.SelectPosition(CardPosition.FaceUpAttack);
return true; return true;
} }
...@@ -1588,7 +1589,7 @@ namespace WindBot.Game.AI.Decks ...@@ -1588,7 +1589,7 @@ namespace WindBot.Game.AI.Decks
if (AI.Utils.IsOneEnemyBetterThanValue(2500, false) && if (AI.Utils.IsOneEnemyBetterThanValue(2500, false) &&
!Bot.HasInHandOrHasInMonstersZone(CardId.ApprenticeLllusionMagician)) !Bot.HasInHandOrHasInMonstersZone(CardId.ApprenticeLllusionMagician))
{ {
AI.SelectPlace(Zones.z5, Zones.ExtraMonsterZones); //AI.SelectPlace(Zones.z5, Zones.ExtraMonsterZones);
AI.SelectPosition(CardPosition.FaceUpAttack); AI.SelectPosition(CardPosition.FaceUpAttack);
return true; return true;
} }
...@@ -1789,6 +1790,7 @@ namespace WindBot.Game.AI.Decks ...@@ -1789,6 +1790,7 @@ namespace WindBot.Game.AI.Decks
public override bool OnPreBattleBetween(ClientCard attacker, ClientCard defender) public override bool OnPreBattleBetween(ClientCard attacker, ClientCard defender)
{ {
/*
if (Enemy.HasInMonstersZone(CardId.MekkKnightMorningStar)) if (Enemy.HasInMonstersZone(CardId.MekkKnightMorningStar))
{ {
attackerzone = -1; attackerzone = -1;
...@@ -1811,6 +1813,7 @@ namespace WindBot.Game.AI.Decks ...@@ -1811,6 +1813,7 @@ namespace WindBot.Game.AI.Decks
return false; return false;
} }
} }
*/
//Logger.DebugWriteLine("@@@@@@@@@@@@@@@@@@@ApprenticeLllusionMagician= " + ApprenticeLllusionMagician_count); //Logger.DebugWriteLine("@@@@@@@@@@@@@@@@@@@ApprenticeLllusionMagician= " + ApprenticeLllusionMagician_count);
if (Bot.HasInSpellZone(CardId.OddEyesWingDragon)) if (Bot.HasInSpellZone(CardId.OddEyesWingDragon))
big_attack = true; big_attack = true;
...@@ -1857,6 +1860,7 @@ namespace WindBot.Game.AI.Decks ...@@ -1857,6 +1860,7 @@ namespace WindBot.Game.AI.Decks
return true; return true;
return base.OnPreBattleBetween(attacker, defender); return base.OnPreBattleBetween(attacker, defender);
} }
/*
public override BattlePhaseAction OnSelectAttackTarget(ClientCard attacker, IList<ClientCard> defenders) public override BattlePhaseAction OnSelectAttackTarget(ClientCard attacker, IList<ClientCard> defenders)
{ {
for (int i = 0; i < defenders.Count; ++i) for (int i = 0; i < defenders.Count; ++i)
...@@ -1884,6 +1888,8 @@ namespace WindBot.Game.AI.Decks ...@@ -1884,6 +1888,8 @@ namespace WindBot.Game.AI.Decks
defenderzone = -1; defenderzone = -1;
return base.OnSelectAttackTarget(attacker,defenders); return base.OnSelectAttackTarget(attacker,defenders);
} }
*/
/*
public override ClientCard OnSelectAttacker(IList<ClientCard> attackers, IList<ClientCard> defenders) public override ClientCard OnSelectAttacker(IList<ClientCard> attackers, IList<ClientCard> defenders)
{ {
for (int i = 0; i < attackers.Count; ++i) for (int i = 0; i < attackers.Count; ++i)
...@@ -1918,6 +1924,7 @@ namespace WindBot.Game.AI.Decks ...@@ -1918,6 +1924,7 @@ namespace WindBot.Game.AI.Decks
} }
return base.OnSelectAttacker(attackers,defenders); return base.OnSelectAttacker(attackers,defenders);
} }
*/
public bool MonsterRepos() public bool MonsterRepos()
{ {
if (Bot.HasInMonstersZone(CardId.OddEyesWingDragon) || if (Bot.HasInMonstersZone(CardId.OddEyesWingDragon) ||
......
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