@@ -617,8 +617,8 @@ func (character *Character) GetPseudoStatsProto() []float64 {
617617
618618 // Base values are modified by Enemy attackTables, but we display for LVL 80 enemy as paperdoll default
619619 proto .PseudoStat_PseudoStatDodgePercent : (character .PseudoStats .BaseDodgeChance + character .GetDiminishedDodgeChance ()) * 100 ,
620- proto .PseudoStat_PseudoStatParryPercent : (character .PseudoStats .BaseParryChance + character .GetDiminishedParryChance ()) * 100 ,
621- proto .PseudoStat_PseudoStatBlockPercent : (character .PseudoStats .BaseBlockChance + character .GetDiminishedBlockChance ()) * 100 ,
620+ proto .PseudoStat_PseudoStatParryPercent : Ternary (character .PseudoStats .CanParry , ( character . PseudoStats . BaseParryChance + character .GetDiminishedParryChance ())* 100 , 0 ) ,
621+ proto .PseudoStat_PseudoStatBlockPercent : Ternary (character .PseudoStats .CanBlock , ( character . PseudoStats . BaseBlockChance + character .GetDiminishedBlockChance ())* 100 , 0 ) ,
622622
623623 // Used by UI to incorporate multiplicative Haste buffs into final character stats display.
624624 proto .PseudoStat_PseudoStatRangedSpeedMultiplier : character .PseudoStats .RangedSpeedMultiplier ,
@@ -686,10 +686,7 @@ func (character *Character) GetMatchingItemProcAuras(statTypesToMatch []stats.St
686686}
687687
688688// Uses proto reflection to set fields in a talents proto (e.g. MageTalents,
689- // WarriorTalents) based on a talentsStr. treeSizes should contain the number
690- // of talents in each tree, usually around 30. This is needed because talent
691- // strings truncate 0's at the end of each tree, so we can't infer the start index
692- // of the tree from the string.
689+ // WarriorTalents) based on a talentsStr.
693690func FillTalentsProto (data protoreflect.Message , talentsStr string ) {
694691 fieldDescriptors := data .Descriptor ().Fields ()
695692
0 commit comments