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

21 lines
342 B
Go

package rule
import (
"blazing/logic/service/common"
"blazing/modules/player/model"
)
// Rule312 奇数回合击败后获取奖励
type Rule312 struct {
RuleBase
}
func (r *Rule312) Exec(f common.FightI, t *model.FightOverInfo) bool {
if t.WinnerId == f.Ownerid() { //获胜
if t.Round%2 != 0 {
return true
}
}
return false
}