Skip to content

Commit

Permalink
缓解手牌变形异常问题 #28
Browse files Browse the repository at this point in the history
  • Loading branch information
Pik-4 committed Jun 22, 2023
1 parent 89a3f91 commit 2dad1bc
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions HsMod/Patcher.cs
Original file line number Diff line number Diff line change
Expand Up @@ -779,7 +779,7 @@ public static void PatchAdventureDungeonCrawlDisplayUpdate(ref GameObject ___m_r
{
if (isShowRetireForever.Value)
{
___m_retireButton.SetActive(true);
___m_retireButton?.SetActive(true);
}
}

Expand Down Expand Up @@ -2149,7 +2149,8 @@ public static void RefreshActor(Card __instance)
{
try
{
if (__instance?.GetEntity()?.GetZone() == TAG_ZONE.PLAY)
// Todo: 添加更细致化的判断条件。目前,手牌有变色龙时,游戏会轻微卡顿。
if ((__instance?.GetEntity()?.GetZone() == TAG_ZONE.PLAY) || (__instance?.GetEntity()?.GetZone() == TAG_ZONE.HAND))
{
__instance?.GetActor()?.SetCard(__instance);
__instance?.GetActor()?.SetCardDefFromEntity(__instance.GetEntity());
Expand Down

0 comments on commit 2dad1bc

Please sign in to comment.