fix: 修复NewSeIdx_5伤害锁定的类型检查
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:
@@ -22,6 +22,9 @@ func (e *NewSel5) DamageLockEx(t *info.DamageZone) bool {
|
|||||||
if e.Ctx().SkillEntity == nil {
|
if e.Ctx().SkillEntity == nil {
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
if t.Type != info.DamageType.Red {
|
||||||
|
return true
|
||||||
|
}
|
||||||
|
|
||||||
_, ok := lo.Find(append(e.Args(), alpacadecimal.NewFromInt(8)), func(item alpacadecimal.Decimal) bool {
|
_, ok := lo.Find(append(e.Args(), alpacadecimal.NewFromInt(8)), func(item alpacadecimal.Decimal) bool {
|
||||||
return int(item.IntPart()) == e.Ctx().Type
|
return int(item.IntPart()) == e.Ctx().Type
|
||||||
|
|||||||
Reference in New Issue
Block a user