22 lines
419 B
Go
22 lines
419 B
Go
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
|
||
}
|