40 lines
604 B
Go
40 lines
604 B
Go
package effect
|
|
|
|
import (
|
|
"blazing/logic/service/fight/info"
|
|
"blazing/logic/service/fight/input"
|
|
)
|
|
|
|
// Effect 478: {0}回合内令对手使用的属性技能无效
|
|
type Effect478 struct {
|
|
RoundEffectSideArg0Base
|
|
can bool
|
|
}
|
|
|
|
func init() {
|
|
ret := &Effect478{}
|
|
|
|
input.InitEffect(input.EffectType.Skill, 478, ret)
|
|
|
|
}
|
|
|
|
// 命中之后
|
|
func (e *Effect478) Skill_Use() bool {
|
|
|
|
e.can = true
|
|
return true
|
|
}
|
|
|
|
func (e *Effect478) SkillHit_ex() bool {
|
|
|
|
if !e.can {
|
|
return true
|
|
}
|
|
if e.Ctx().SkillEntity.Category() != info.Category.STATUS {
|
|
return true
|
|
}
|
|
e.Ctx().SkillEntity.SetNoSide()
|
|
|
|
return true
|
|
}
|