We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 74fc0ce commit 1c44cffCopy full SHA for 1c44cff
1 file changed
InscryptionCommunityPatch/Card/Vanilla Ability Patches/SentryInteractionFixes.cs
@@ -14,7 +14,7 @@ public class SentryInteractionFixes
14
[HarmonyPrefix]
15
private static bool CardGainAbilityNullCheckPatch(ref PlayableCard otherCard)
16
{
17
- if (!otherCard.Dead && otherCard.Slot.IsPlayerSlot && Singleton<CardGainAbility>.Instance.RespondsToOtherCardDrawn(otherCard) && !otherCard.HasAbility(Singleton<TotemTriggerReceiver>.Instance.Data.bottom.effectParams.ability))
+ if (otherCard != null && !otherCard.Dead && otherCard.Slot.IsPlayerSlot && Singleton<CardGainAbility>.Instance.RespondsToOtherCardDrawn(otherCard) && !otherCard.HasAbility(Singleton<TotemTriggerReceiver>.Instance.Data.bottom.effectParams.ability))
18
return !otherCard.Info.Mods.Exists((CardModificationInfo x) => x.fromEvolve);
19
20
return false;
0 commit comments