22 lines
415 B
Go
22 lines
415 B
Go
package rule
|
|
|
|
import (
|
|
"blazing/logic/service/common"
|
|
"blazing/modules/player/model"
|
|
)
|
|
|
|
// Rule300 致命一击击败后获取奖励
|
|
type Rule300 struct {
|
|
RuleBase // 嵌入基类,继承 args、SetArgs、Exec
|
|
}
|
|
|
|
func (r *Rule300) Exec(f common.FightI, t *model.FightOverInfo) bool {
|
|
if t.WinnerId == f.Ownerid() { //获胜
|
|
|
|
if f.GetAttackValue(false).IsCritical != 0 {
|
|
return true
|
|
}
|
|
}
|
|
return false
|
|
}
|