fix
This commit is contained in:
parent
9a997c410c
commit
2fc92b025b
@ -104,6 +104,7 @@ func (this *ActivityApi) RollDice(c *gin.Context) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
fullgrid := false
|
fullgrid := false
|
||||||
|
scoreaward := true
|
||||||
if len(*items) > 0 {
|
if len(*items) > 0 {
|
||||||
gridawarded := false
|
gridawarded := false
|
||||||
userAwardgrids := user.GetAwardGrids()
|
userAwardgrids := user.GetAwardGrids()
|
||||||
@ -125,8 +126,12 @@ func (this *ActivityApi) RollDice(c *gin.Context) {
|
|||||||
if len(awardgridids) <= len(userAwardgrids) {
|
if len(awardgridids) <= len(userAwardgrids) {
|
||||||
fullgrid = true
|
fullgrid = true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
scoreaward = false
|
||||||
}
|
}
|
||||||
} else {
|
}
|
||||||
|
|
||||||
|
if scoreaward {
|
||||||
if err, ok := service.Buff.HasBuffEffect(s.GetAccountId(),
|
if err, ok := service.Buff.HasBuffEffect(s.GetAccountId(),
|
||||||
constant.BUFF_EFFECT_SCORE_CARD_X3); err == nil {
|
constant.BUFF_EFFECT_SCORE_CARD_X3); err == nil {
|
||||||
if ok {
|
if ok {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user