Skip to content

Commit

Permalink
fix: HarmonyPatch Method name error
Browse files Browse the repository at this point in the history
  • Loading branch information
Cherrysaber committed Oct 4, 2022
1 parent 866e63a commit dbc7a50
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion HeroDeckShow/HeroDeckShow.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<TargetFramework>net48</TargetFramework>
<AssemblyName>HeroDeckShow</AssemblyName>
<Description>My first plugin</Description>
<Version>1.0.1</Version>
<Version>1.0.2</Version>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<LangVersion>latest</LangVersion>
</PropertyGroup>
Expand Down
4 changes: 2 additions & 2 deletions HeroDeckShow/Plugin.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ private void Awake()
Harmony.CreateAndPatchAll(typeof(Plugin));
}

[HarmonyPatch(typeof(DeckWindowUI), "SetCombatCard")]
[HarmonyPatch(typeof(DeckWindowUI), "SetCombatDeck")]
[HarmonyPrefix]
public static void SetCombatDeck(DeckWindowUI __instance, int heroIndex, bool discard)
public static void SetCombatDeckPrefix(DeckWindowUI __instance, int heroIndex, bool discard)
{
Plugin.discard = discard;
}
Expand Down

0 comments on commit dbc7a50

Please sign in to comment.