Skip to content

Commit d0503bb

Browse files
Fix slot effects with rulebook redirects disabling the slot when the effect is reset
1 parent f3aa9a1 commit d0503bb

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
- Added IShieldPreventedDamage and IShieldPreventedDamageInHand ability triggers and interfaces
66
- Added TriggerBreakShield, wraps BreakShield in an IEnumerator for additional customisation by modders
77
- Added ICustomExhaustSequence trigger interface for modifying the draw pile exhaustion effect - use with Opponents
8+
- Fixed board slots being uninteractable if a slot effect with a rulebook interactable was reset
89
- Removed debug logging related to rulebook redirect coordinates
910

1011
# 2.22.0

InscryptionAPI/Slots/SlotModificationExtensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ public static IEnumerator SetSlotModification(this CardSlot slot, ModificationTy
9898
SlotModificationInteractable interactable = slot.GetComponent<SlotModificationInteractable>();
9999
if (defn == null || modType == ModificationType.NoModification || (defn.SharedRulebook == ModificationType.NoModification && string.IsNullOrEmpty(defn.RulebookName)))
100100
{
101-
interactable?.SetEnabled(false);
101+
UnityObject.Destroy(interactable);
102102
}
103103
else
104104
{

0 commit comments

Comments
 (0)