Files
bl/logic/service/fight/effect/493.go

40 lines
770 B
Go
Raw Normal View History

package effect
import (
"blazing/logic/service/fight/info"
"blazing/logic/service/fight/input"
"blazing/logic/service/fight/node"
)
// 493 - m回合内若对手使用攻击技能则自身下n回合必定暴击
type Effect493 struct {
node.EffectNode
can bool
}
func (e *Effect493) Skill_Use_ex() bool {
if e.Ctx().SkillEntity != nil && e.Ctx().SkillEntity.Category() != info.Category.STATUS {
e.can = true
}
return true
}
func (e *Effect493) SkillHit() bool {
if !e.can {
return true
}
e.Ctx().SkillEntity.CritRate = 16
return true
}
func (e *Effect493) SetArgs(t *input.Input, a ...int) {
e.EffectNode.SetArgs(t, a...)
e.EffectNode.Duration(a[0]) // 持续m回合
}
func init() {
input.InitEffect(input.EffectType.Skill, 493, &Effect493{})
}