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

38 lines
638 B
Go
Raw Normal View History

package effect
import (
"blazing/logic/service/fight/input"
"blazing/logic/service/fight/node"
)
// 486 - 下n回合若自身选择使用技能则无视对手能力提升状态
type Effect486 struct {
node.EffectNode
can bool
}
func (e *Effect486) Skill_Use() bool {
e.can = true
return true
}
func (e *Effect486) CalculatePre() bool {
if !e.can {
return true
}
e.Ctx().Opp.Prop = [6]int8{}
return true
}
func (e *Effect486) SetArgs(t *input.Input, a ...int) {
e.EffectNode.SetArgs(t, a...)
e.EffectNode.Duration(a[0]) // 持续m回合
}
func init() {
input.InitEffect(input.EffectType.Skill, 486, &Effect486{})
}