31 lines
711 B
Go
31 lines
711 B
Go
|
|
package effect
|
|||
|
|
|
|||
|
|
import (
|
|||
|
|
"blazing/logic/service/fight/info"
|
|||
|
|
"blazing/logic/service/fight/input"
|
|||
|
|
"blazing/logic/service/fight/node"
|
|||
|
|
)
|
|||
|
|
|
|||
|
|
// 189 - n回合内,若受到攻击,对手攻击等级-1、特攻等级-1
|
|||
|
|
type Effect189 struct {
|
|||
|
|
node.EffectNode
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
func (e *Effect189) Skill_Use_ex() bool {
|
|||
|
|
if e.Ctx().SkillEntity == nil {
|
|||
|
|
return true
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
e.Ctx().Opp.SetProp(e.Ctx().Our, 0, -1, info.AbilityOpType.SUB)
|
|||
|
|
e.Ctx().Opp.SetProp(e.Ctx().Our, 2, -1, info.AbilityOpType.SUB)
|
|||
|
|
return true
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
func (e *Effect189) SetArgs(t *input.Input, a ...int) {
|
|||
|
|
e.EffectNode.SetArgs(t, a...)
|
|||
|
|
e.EffectNode.Duration(a[0]) // 持续n回合
|
|||
|
|
}
|
|||
|
|
func init() {
|
|||
|
|
input.InitEffect(input.EffectType.NewSel, 189, &Effect189{})
|
|||
|
|
}
|