Some checks failed
ci/woodpecker/push/my-first-workflow Pipeline failed
fix(fight): 完善boss技能37注释并修复技能48伤害计算逻辑 - 移除NewSeIdx_37.go中TODO注释,完善技能描述 - 修复NewSeIdx_48.go中技能48的伤害减免逻辑,统一使用Ctx().Category() - 优化modules/config/service/base.go中的缓存配置逻辑 ```
33 lines
602 B
Go
33 lines
602 B
Go
package effect
|
|
|
|
import (
|
|
"blazing/logic/service/fight/info"
|
|
"blazing/logic/service/fight/input"
|
|
)
|
|
|
|
// 37. 自身 一次受到大于n 的伤害时直接将对方体力降至0;
|
|
type NewSel37 struct {
|
|
NewSel0
|
|
}
|
|
|
|
func (e *NewSel37) DamageLockEx(t *info.DamageZone) bool {
|
|
if e.ID().GetCatchTime() != e.Ctx().Our.CurrentPet.Info.CatchTime {
|
|
return true
|
|
}
|
|
|
|
if t.Type != info.DamageType.Red {
|
|
return true
|
|
}
|
|
|
|
if t.Damage.IntPart() > int64(e.Args()[0].IntPart()) {
|
|
|
|
e.Ctx().Opp.CurrentPet.Info.Hp = 0
|
|
|
|
}
|
|
|
|
return true
|
|
}
|
|
func init() {
|
|
input.InitEffect(input.EffectType.NewSel, 37, &NewSel37{})
|
|
}
|