Files
bl/logic/service/fight/rule/rule308.go
2026-03-21 00:41:13 +08:00

22 lines
430 B
Go

package rule
import (
"blazing/logic/service/common"
"blazing/modules/player/model"
)
// Rule308 战斗中超过n伤害获取奖励
// args[0] = 最低伤害阈值(单次攻击)
type Rule308 struct {
RuleBase
}
func (r *Rule308) Exec(f common.FightI, t *model.FightOverInfo) bool {
if t.WinnerId == f.Ownerid() { //获胜
if f.GetAttackValue(false).LostHp >= uint32(r.args[0]) {
return true
}
}
return false
}