22 lines
430 B
Go
22 lines
430 B
Go
package rule
|
|
|
|
import (
|
|
"blazing/logic/service/common"
|
|
"blazing/modules/player/model"
|
|
)
|
|
|
|
// Rule308 战斗中超过n伤害获取奖励
|
|
// args[0] = 最低伤害阈值(单次攻击)
|
|
type Rule308 struct {
|
|
RuleBase
|
|
}
|
|
|
|
func (r *Rule308) Exec(f common.FightI, t *model.FightOverInfo) bool {
|
|
if t.WinnerId == f.Ownerid() { //获胜
|
|
if f.GetAttackValue(false).LostHp >= uint32(r.args[0]) {
|
|
return true
|
|
}
|
|
}
|
|
return false
|
|
}
|