fix: 修复空提交问题
This commit is contained in:
@@ -3,7 +3,8 @@ package effect
|
||||
import (
|
||||
"blazing/logic/service/fight/input"
|
||||
"blazing/logic/service/fight/node"
|
||||
"math/rand"
|
||||
|
||||
"github.com/gogf/gf/v2/util/grand"
|
||||
)
|
||||
|
||||
// -----------------------------------------------------------
|
||||
@@ -49,7 +50,7 @@ func (e *EffectRandomPower) Skill_Hit() bool {
|
||||
if e.Input != nil && e.Input.FightC != nil {
|
||||
n = int(e.Input.FightC.GetRand().Int31n(int32(e.Max-e.Min+1))) + e.Min
|
||||
} else {
|
||||
n = rand.Intn(e.Max-e.Min+1) + e.Min
|
||||
n = grand.Intn(e.Max-e.Min+1) + e.Min
|
||||
}
|
||||
|
||||
e.Ctx().SkillEntity.Power = n
|
||||
|
||||
Reference in New Issue
Block a user