Files
bl/logic/service/fight/rule/rule300.go
xinian 9a1a181ecd
All checks were successful
ci/woodpecker/push/my-first-workflow Pipeline was successful
refactor: 拆分战斗规则文件为独立模块
2026-03-21 00:34:47 +08:00

22 lines
415 B
Go

package rule
import (
"blazing/logic/service/common"
"blazing/modules/player/model"
)
// Rule300 致命一击击败后获取奖励
type Rule300 struct {
RuleBase // 嵌入基类,继承 args、SetArgs、Exec
}
func (r *Rule300) Exec(f common.FightI, t *model.FightOverInfo) bool {
if t.WinnerId == f.Ownerid() { //获胜
if f.GetAttackValue(false).IsCritical != 0 {
return true
}
}
return false
}