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

39 lines
676 B
Go
Raw Normal View History

package effect
import (
"blazing/logic/service/fight/action"
"blazing/logic/service/fight/input"
"blazing/logic/service/fight/node"
)
/**
* 使用后n回合攻击击中对象要害概率增加1/16
*/
func init() {
input.InitEffect(input.EffectType.Skill, 32, &Effect32{
EffectNode: node.EffectNode{},
})
}
type Effect32 struct {
node.EffectNode
}
func (e *Effect32) ActionStart(a, b *action.SelectSkillAction) bool {
if e.Ctx().SkillEntity == nil {
return true
}
e.Ctx().SkillEntity.Crit += 1
return true
}
func (e *Effect32) SetArgs(t *input.Input, a ...int) {
e.EffectNode.SetArgs(t, a...)
e.EffectNode.Duration(e.EffectNode.SideEffectArgs[0])
}