Merge pull request 'fix-bug/can't-learn-skill-require-books' (#332) from fix-bug/can't-learn-skill-require-books into develop

Reviewed-on: https://git.pthub.vn/Unity/perfect-world-unity/pulls/332
This commit is contained in:
hoangvd
2026-04-13 03:17:03 +00:00
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -35,7 +35,7 @@ RectTransform:
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 1}
m_AnchorMax: {x: 0, y: 1}
m_AnchoredPosition: {x: 20, y: -402.765}
m_AnchoredPosition: {x: 20, y: -418.075}
m_SizeDelta: {x: 400, y: 0}
m_Pivot: {x: 0, y: 0.5}
--- !u!222 &4376431126769957786
@@ -120,7 +120,7 @@ MonoBehaviour:
m_lineSpacingMax: 0
m_paragraphSpacing: 0
m_charWidthMaxAdj: 0
m_TextWrappingMode: 0
m_TextWrappingMode: 1
m_wordWrappingRatios: 0.4
m_overflowMode: 0
m_linkedTextComponent: {fileID: 0}
+1 -1
View File
@@ -1633,7 +1633,7 @@ namespace BrewMonster
{
// Do we have the skill book ?
int idBook = ElementSkill.GetRequiredBook((uint)idSkill, iLevel);
if (idBook != 0 /*&& m_pPack.FindItem(idBook) < 0*/)
if (idBook != 0 && m_pPack.FindItem(idBook) < 0)
return 8;
}