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

22 lines
419 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"
)
// Rule303 使用xx技能击败攻击致死获取奖励
// args[0] = 技能ID
type Rule303 struct {
RuleBase
}
func (r *Rule303) 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
}