49 lines
810 B
Go
49 lines
810 B
Go
package effect
|
|
|
|
import (
|
|
"blazing/logic/service/fight/input"
|
|
"blazing/logic/service/fight/node"
|
|
)
|
|
|
|
/**
|
|
* n回合若本方先手攻击: 使得技能miss (但MustHit有效)
|
|
*/
|
|
|
|
func init() {
|
|
t := &Effect52{
|
|
EffectNode: node.EffectNode{},
|
|
}
|
|
|
|
input.InitEffect(input.EffectType.Skill, 52, t)
|
|
|
|
}
|
|
|
|
type Effect52 struct {
|
|
node.EffectNode
|
|
}
|
|
|
|
// 默认添加回合
|
|
func (e *Effect52) SetArgs(t *input.Input, a ...int) {
|
|
|
|
e.EffectNode.SetArgs(t, a...)
|
|
e.EffectNode.Duration(e.EffectNode.SideEffectArgs[0] - 1)
|
|
|
|
}
|
|
|
|
func (e *Effect52) Skill_Hit_ex() bool {
|
|
|
|
//fmt.Println(e.Ctx().SkillEntity)
|
|
if e.Ctx().SkillEntity == nil {
|
|
return true
|
|
}
|
|
|
|
if !e.Input.FightC.IsFirst(e.Ctx().Our.Player) {
|
|
return true
|
|
}
|
|
if e.Ctx().SkillEntity.AttackTime == 1 {
|
|
e.Ctx().SkillEntity.AttackTime = 0
|
|
}
|
|
|
|
return true
|
|
}
|