fix: 修复伤害计算逻辑错误
All checks were successful
ci/woodpecker/push/my-first-workflow Pipeline was successful

This commit is contained in:
xinian
2026-03-06 19:34:58 +08:00
committed by cnb
parent 1645413f8d
commit 77bb7a7112
3 changed files with 9 additions and 10 deletions

View File

@@ -28,6 +28,7 @@ func (e *NewSel148) DamageDivEx(t *info.DamageZone) bool {
}
old, ok := e.sks[e.Ctx().SkillEntity.ID]
if !ok {
e.sks[e.Ctx().SkillEntity.ID] = *e.Ctx().SkillEntity
t.Damage = alpacadecimal.Zero
return true
}
@@ -37,8 +38,6 @@ func (e *NewSel148) DamageDivEx(t *info.DamageZone) bool {
return true
}
e.sks[e.Ctx().SkillEntity.ID] = *e.Ctx().SkillEntity
return true
}

View File

@@ -12,7 +12,7 @@ type NewSel184 struct {
NewSel0
}
func (e *NewSel184) DamageLockEx(t *info.DamageZone) bool {
func (e *NewSel184) DamageDivEx(t *info.DamageZone) bool {
if e.ID().GetCatchTime() != e.Ctx().Our.CurrentPet.Info.CatchTime {
return true
}
@@ -20,13 +20,13 @@ func (e *NewSel184) DamageLockEx(t *info.DamageZone) bool {
if e.Ctx().SkillEntity == nil {
return true
}
if e.Ctx().SkillEntity.Crit == 0 {
if t.Type == info.DamageType.Red {
t.Damage = alpacadecimal.Zero
}
if t.Type != info.DamageType.Red {
return true
}
if e.Ctx().SkillEntity.Crit > 0 {
return true
}
t.Damage = alpacadecimal.Zero
return true
}
func init() {

View File

@@ -14,7 +14,7 @@ func (e *NewSel284) SkillHit_ex() bool {
return true
}
if e.Ctx().SkillEntity.Priority <= 0 {
if e.Ctx().SkillEntity.Priority > 0 {
return true
}
e.Ctx().SkillEntity.SetMiss()