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

22 lines
385 B
Go

package rule
import (
"blazing/logic/service/common"
"blazing/modules/player/model"
)
// Rule313 特定回合击败后获取奖励
// args[0] = 指定回合数
type Rule313 struct {
RuleBase
}
func (r *Rule313) Exec(f common.FightI, t *model.FightOverInfo) bool {
if t.WinnerId == f.Ownerid() { //获胜
if t.Round == uint32(r.args[0]) {
return true
}
}
return false
}