Commit 046c0bec authored by mercury233's avatar mercury233

update Orcust

add GetFogBladeTarget
parent 9e8da7d3
...@@ -640,7 +640,9 @@ namespace WindBot.Game.AI.Decks ...@@ -640,7 +640,9 @@ namespace WindBot.Game.AI.Decks
{ {
if (ActivateDescription == -1 || ActivateDescription == Util.GetStringId(CardId.ThePhantomKnightsofRustyBardiche, 0)) if (ActivateDescription == -1 || ActivateDescription == Util.GetStringId(CardId.ThePhantomKnightsofRustyBardiche, 0))
{ {
ClientCard target = Util.GetBestEnemyCard(false, true); ClientCard target = GetFogBladeTarget();
if (target == null)
target = Util.GetBestEnemyCard(false, true);
if (target == null) if (target == null)
return false; return false;
RustyBardicheTarget = target; RustyBardicheTarget = target;
...@@ -658,6 +660,11 @@ namespace WindBot.Game.AI.Decks ...@@ -658,6 +660,11 @@ namespace WindBot.Game.AI.Decks
} }
} }
private ClientCard GetFogBladeTarget()
{
return Enemy.MonsterZone.GetFirstMatchingCard(card => card.OwnTargets.Any(cont => cont.IsCode(CardId.PhantomKnightsFogBlade)));
}
private bool CymbalSkeletonEffect() private bool CymbalSkeletonEffect()
{ {
int[] botTurnTargets = new[] { CardId.GalateaTheOrcustAutomaton, CardId.SheorcustDingirsu }; int[] botTurnTargets = new[] { CardId.GalateaTheOrcustAutomaton, CardId.SheorcustDingirsu };
...@@ -695,6 +702,13 @@ namespace WindBot.Game.AI.Decks ...@@ -695,6 +702,13 @@ namespace WindBot.Game.AI.Decks
private bool SheorcustDingirsuEffect() private bool SheorcustDingirsuEffect()
{ {
ClientCard target; ClientCard target;
target = GetFogBladeTarget();
if (target != null && target != RustyBardicheTarget)
{
AI.SelectOption(0);
AI.SelectCard(target);
return true;
}
target = Util.GetProblematicEnemyMonster(); target = Util.GetProblematicEnemyMonster();
if (target != null && target != RustyBardicheTarget) if (target != null && target != RustyBardicheTarget)
{ {
......
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