fix: 修复空提交问题

This commit is contained in:
1
2025-11-23 23:38:03 +00:00
parent aa4574b5eb
commit 240c349b8a
45 changed files with 113 additions and 4438 deletions

View File

@@ -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