37 lines
603 B
Go
37 lines
603 B
Go
package effect
|
|
|
|
import (
|
|
"blazing/logic/service/fight/input"
|
|
)
|
|
|
|
/**
|
|
* n回合若本方先手攻击: 使得技能miss (但MustHit有效)
|
|
*/
|
|
|
|
func init() {
|
|
t := &Effect52{}
|
|
|
|
input.InitEffect(input.EffectType.Skill, 52, t)
|
|
|
|
}
|
|
|
|
// Effect 52: {0}回合若本方先手攻击,使得对方的技能失效
|
|
type Effect52 struct {
|
|
RoundEffectSideArg0Minus1Base
|
|
}
|
|
|
|
func (e *Effect52) SkillHit_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
|
|
}
|
|
e.Ctx().SkillEntity.SetMiss()
|
|
|
|
return true
|
|
}
|