Commit 9442096f authored by wind2009's avatar wind2009 Committed by GitHub

Executor update (#123)

parent b115f4a5
......@@ -364,6 +364,16 @@ namespace WindBot.Game.AI.Decks
}
}
public override int OnSelectPlace(int cardId, int player, CardLocation location, int available)
{
if (cardId == CardID.MathmechFinalSigma)
{
if ((Zones.z5 & available) > 0) return Zones.z5;
if ((Zones.z6 & available) > 0) return Zones.z6;
}
return base.OnSelectPlace(cardId, player, location, available);
}
}
}
\ No newline at end of file
......@@ -220,10 +220,10 @@ namespace WindBot.Game.AI.Decks
: base(ai, duel)
{
//counter
AddExecutor(ExecutorType.Activate, CardId.SolemnStrike, base.DefaultSolemnStrike);
AddExecutor(ExecutorType.Activate, CardId.SolemnWarning, base.DefaultSolemnWarning);
AddExecutor(ExecutorType.Activate, CardId.ForbiddenChalice, ForbiddenChaliceeff);
AddExecutor(ExecutorType.Activate, CardId.CrystalWingSynchroDragon, CrystalWingSynchroDragoneff);
AddExecutor(ExecutorType.Activate, CardId.SolemnStrike, base.DefaultSolemnStrike);
AddExecutor(ExecutorType.Activate, CardId.GustoGulldo, GustoGulldoeff);
AddExecutor(ExecutorType.Activate, CardId.GustoEgul, GustoEguleff);
AddExecutor(ExecutorType.Activate, CardId.WindaPriestessOfGusto, WindaPriestessOfGustoeff);
......
......@@ -69,16 +69,9 @@ namespace WindBot.Game.AI.Decks
AddExecutor(ExecutorType.SpellSet,Traps.TimeThiefRetrograte);
AddExecutor(ExecutorType.SpellSet,Traps.TimeThiefFlyBack);
//special summons
AddExecutor(ExecutorType.SpSummon,Monsters.PhotonTrasher ,SummonToDef);
AddExecutor(ExecutorType.SpSummon,Monsters.TimeThiefRegulator, SummonToDef);
AddExecutor(ExecutorType.SpSummon,Monsters.TimeThiefWinder, SummonToDef);
AddExecutor(ExecutorType.SpSummon,Monsters.PerformTrickClown, SummonToDef);
AddExecutor(ExecutorType.SpSummon,Monsters.TimeThiefCronocorder, SummonToDef);
AddExecutor(ExecutorType.SpSummon,Monsters.TimeThiefBezelShip, SummonToDef);
//normal summons
AddExecutor(ExecutorType.Summon,Monsters.TimeThiefRegulator );
AddExecutor(ExecutorType.SpSummon, Monsters.PhotonTrasher, SummonToDef );
AddExecutor(ExecutorType.Summon,Monsters.TimeThiefWinder );
AddExecutor(ExecutorType.Summon,Monsters.TimeThiefBezelShip );
AddExecutor(ExecutorType.Summon,Monsters.PerformTrickClown );
......@@ -100,12 +93,9 @@ namespace WindBot.Game.AI.Decks
//monster effects
AddExecutor(ExecutorType.Activate,Monsters.TimeThiefRegulator , RegulatorEffect);
AddExecutor(ExecutorType.Activate,Monsters.TimeThiefWinder);
AddExecutor(ExecutorType.Activate,Monsters.PhotonTrasher);
AddExecutor(ExecutorType.Activate,Monsters.TimeThiefCronocorder);
AddExecutor(ExecutorType.Activate,Monsters.PerformTrickClown);
AddExecutor(ExecutorType.Activate,Monsters.TimeThiefBezelShip);
AddExecutor(ExecutorType.Activate,Monsters.PerformTrickClown, TrickClownEffect);
AddExecutor(ExecutorType.Activate,Monsters.TimeThiefBezelShip);
}
private bool SummonToDef()
......@@ -278,8 +268,18 @@ namespace WindBot.Game.AI.Decks
return true;
}
private bool TrickClownEffect()
{
if (Bot.LifePoints <= 1000)
{
return false;
}
AI.SelectPosition(CardPosition.FaceUpDefence);
return 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