Files
bl/logic/service/fight/effect/584.go
xinian 875ad668aa
Some checks failed
ci/woodpecker/push/my-first-workflow Pipeline failed
feat: 实现战斗效果逻辑和接口重构
2026-03-28 21:57:22 +08:00

36 lines
706 B
Go

package effect
import (
"blazing/logic/service/fight/info"
"blazing/logic/service/fight/input"
)
// Effect 584: {0}回合内自己的所有攻击技能都附有{1}%的秒杀概率
type Effect584 struct {
RoundEffectArg0Base
}
func (e *Effect584) DamageFloor(t *info.DamageZone) bool {
if e.Ctx().SkillEntity == nil {
return true
}
if e.Ctx().SkillEntity.Category() == info.Category.STATUS {
return true
}
if t.Type != info.DamageType.Red {
return true
}
ok, _, _ := e.Input.Player.Roll(int(e.Args()[1].IntPart()), 100)
if !ok {
return true
}
t.Damage = e.Ctx().Opp.CurrentPet.GetMaxHP()
return true
}
func init() {
input.InitEffect(input.EffectType.Skill, 584, &Effect584{})
}