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

22 lines
422 B
Go
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

package rule
import (
"blazing/logic/service/common"
"blazing/modules/player/model"
)
// Rule304 使用xx技能后属性技能击败获取奖励
// args[0] = 技能ID
type Rule304 struct {
RuleBase
}
func (r *Rule304) Exec(f common.FightI, t *model.FightOverInfo) bool {
if t.WinnerId == f.Ownerid() { //获胜
if f.GetAttackValue(false).SkillID == uint32(r.args[0]) {
return true
}
}
return false
}