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

22 lines
396 B
Go

package rule
import (
"blazing/logic/service/common"
"blazing/modules/player/model"
)
// Rule305 满血击败后获取奖励
type Rule305 struct {
RuleBase
}
func (r *Rule305) Exec(f common.FightI, t *model.FightOverInfo) bool {
if t.WinnerId == f.Ownerid() { //获胜
attack := f.GetAttackValue(false)
if attack.RemainHp >= int32(attack.MaxHp) {
return true
}
}
return false
}