Skip to content

Commit

Permalink
fix(DnD): 修复属性豁免加值计算错误 (sealdice#889)
Browse files Browse the repository at this point in the history
  • Loading branch information
Xiangze-Li authored Jul 11, 2024
1 parent 8fe0338 commit 343a093
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dice/rollvm_migrate.go
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ func (ctx *MsgContext) setDndReadForVM(rcMode bool) {
vName = ctx.SystemTemplate.GetAlias(vName)
}
stpName := stpFormat(vName) // saving throw proficiency
expr := fmt.Sprintf("pbCalc(0, %s ?? 0, (%s ?? 0 + %s ?? 0)/2-5)", stpName, vName, "$buff_"+vName)
expr := fmt.Sprintf("pbCalc(0, %s ?? 0, (%s ?? 0 + %s ?? 0))", stpName, vName, "$buff_"+vName)
skip = true
ret, err := ctx.vm.RunExpr(expr, false)
skip = false
Expand Down

0 comments on commit 343a093

Please sign in to comment.