Commit 9dd5b55d authored by wind2009's avatar wind2009 Committed by mercury233

Altergeist fix (#79)

parent 0448ed76
...@@ -1548,7 +1548,7 @@ namespace WindBot.Game.AI.Decks ...@@ -1548,7 +1548,7 @@ namespace WindBot.Game.AI.Decks
ClientCard enemy_card = GetBestEnemyCard_random(); ClientCard enemy_card = GetBestEnemyCard_random();
if (enemy_card != null) if (enemy_card != null)
{ {
Logger.DebugWriteLine("Silquitousdecide:" + bounce_self.Name); Logger.DebugWriteLine("Silquitousdecide:" + bounce_self?.Name);
AI.SelectCard(bounce_self); AI.SelectCard(bounce_self);
AI.SelectNextCard(enemy_card); AI.SelectNextCard(enemy_card);
return true; return true;
...@@ -1805,6 +1805,7 @@ namespace WindBot.Game.AI.Decks ...@@ -1805,6 +1805,7 @@ namespace WindBot.Game.AI.Decks
} }
} }
} }
AI.SelectCard((ClientCard)null);
} }
public bool Spoofing_eff() public bool Spoofing_eff()
...@@ -1983,7 +1984,7 @@ namespace WindBot.Game.AI.Decks ...@@ -1983,7 +1984,7 @@ namespace WindBot.Game.AI.Decks
if ( (AI.Utils.IsChainTarget(card) || AI.Utils.ChainContainsCard(CardId.DarkHole) || (!Protocol_activing() && card.IsDisabled())) if ( (AI.Utils.IsChainTarget(card) || AI.Utils.ChainContainsCard(CardId.DarkHole) || (!Protocol_activing() && card.IsDisabled()))
&& card.IsFaceup() && Duel.LastChainPlayer != 0 && isAltergeist(card.Id)) && card.IsFaceup() && Duel.LastChainPlayer != 0 && isAltergeist(card.Id))
{ {
Logger.DebugWriteLine("Spoofing target:" + card.Name); Logger.DebugWriteLine("Spoofing target:" + card?.Name);
AI.SelectCard(card); AI.SelectCard(card);
go = true; go = true;
break; break;
......
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