Skip to content

Commit

Permalink
Altergeist fix (IceYGO#79)
Browse files Browse the repository at this point in the history
  • Loading branch information
Wind2009-Louse authored and mercury233 committed Aug 20, 2018
1 parent ee25b65 commit 6836e93
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Game/AI/Decks/AltergeistExecutor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1548,7 +1548,7 @@ public bool Silquitous_eff()
ClientCard enemy_card = GetBestEnemyCard_random();
if (enemy_card != null)
{
Logger.DebugWriteLine("Silquitousdecide:" + bounce_self.Name);
Logger.DebugWriteLine("Silquitousdecide:" + bounce_self?.Name);
AI.SelectCard(bounce_self);
AI.SelectNextCard(enemy_card);
return true;
Expand Down Expand Up @@ -1805,6 +1805,7 @@ public void Spoofing_select(IList<int> list)
}
}
}
AI.SelectCard((ClientCard)null);
}

public bool Spoofing_eff()
Expand Down Expand Up @@ -1983,7 +1984,7 @@ public bool Spoofing_eff()
if ( (AI.Utils.IsChainTarget(card) || AI.Utils.ChainContainsCard(CardId.DarkHole) || (!Protocol_activing() && card.IsDisabled()))
&& card.IsFaceup() && Duel.LastChainPlayer != 0 && isAltergeist(card.Id))
{
Logger.DebugWriteLine("Spoofing target:" + card.Name);
Logger.DebugWriteLine("Spoofing target:" + card?.Name);
AI.SelectCard(card);
go = true;
break;
Expand Down

0 comments on commit 6836e93

Please sign in to comment.