fix: 修复伤害计算逻辑错误
All checks were successful
ci/woodpecker/push/my-first-workflow Pipeline was successful
All checks were successful
ci/woodpecker/push/my-first-workflow Pipeline was successful
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
@@ -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() {
|
||||
|
||||
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user