Skip to content

Commit 114d239

Browse files
committed
Modified Card_AttachAbilities_NewSpecialAbilities to use SpecialAbilities property instead of field
1 parent ec4eb57 commit 114d239

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

Patches/Card_AttachAbilities_NewSpecialAbilities.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,15 @@ public class Card_AttachAbilities_NewSpecialAbilities
1313
public static bool Prefix(CardInfo info, Card __instance)
1414
{
1515
Plugin.Log.LogDebug(
16-
$"Called Card.AttachAbilities with [{info.name}] has [{info.specialAbilities.Count}] special abilities");
16+
$"Called Card.AttachAbilities with [{info.name}] has [{info.SpecialAbilities.Count}] special abilities");
1717

1818
// if the card's special triggered ability exists in the NewSpecialAbility list,
1919
// then we loop to assign to the game object.
2020
// if the ability does not exist, return true running the original code
2121
if (NewSpecialAbility.specialAbilities.Exists(ability =>
22-
info.specialAbilities.Contains(ability.specialTriggeredAbility)))
22+
info.SpecialAbilities.Contains(ability.specialTriggeredAbility)))
2323
{
24-
foreach (var type in info.specialAbilities
24+
foreach (var type in info.SpecialAbilities
2525
.Select(specialTriggeredAbility => NewSpecialAbility.specialAbilities
2626
.Find(x => x.specialTriggeredAbility == specialTriggeredAbility))
2727
.Select(newAbility => newAbility.abilityBehaviour))

0 commit comments

Comments
 (0)