Skip to content

Commit ac1cc2b

Browse files
modified
1 parent 564620f commit ac1cc2b

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

InscryptionAPI/Encounters/ICustomExhaustSequence.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,11 @@
44
namespace InscryptionAPI.Encounters;
55

66
/// <summary>
7-
/// An Opponent interface that implements custom logic when the player has exhausted both of their draw piles.
7+
/// An interface that implements custom logic when the player has exhausted both of their draw piles.
88
/// </summary>
9+
/// <remarks>
10+
/// Only for Opponents and SpecialSequences.
11+
/// </remarks>
912
public interface ICustomExhaustSequence
1013
{
1114
public bool RespondsToCustomExhaustSequence(CardDrawPiles drawPiles);

InscryptionAPI/Encounters/OpponentManager.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ public static void ProcessBossType(NodeData nodeData)
255255
[HarmonyPostfix, HarmonyPatch(typeof(CardDrawPiles), nameof(CardDrawPiles.ExhaustedSequence))]
256256
private static IEnumerator CustomBossExhaustionSequence(IEnumerator enumerator, CardDrawPiles __instance)
257257
{
258-
if (TurnManager.Instance.Opponent is ICustomExhaustSequence exhaustSeq && exhaustSeq != null && exhaustSeq.RespondsToCustomExhaustSequence(__instance))
258+
if (TurnManager.Instance.Opponent is ICustomExhaustSequence exhaustSeq && exhaustSeq != null)
259259
{
260260
Singleton<ViewManager>.Instance.SwitchToView(View.CardPiles, immediate: false, lockAfter: true);
261261
yield return new WaitForSeconds(1f);

0 commit comments

Comments
 (0)