41 lines
711 B
Go
41 lines
711 B
Go
package effect
|
|
|
|
import (
|
|
"blazing/logic/service/fight/info"
|
|
"blazing/logic/service/fight/input"
|
|
"blazing/logic/service/fight/node"
|
|
)
|
|
|
|
// Effect 566: 攻击时忽略对手{0}%的防御值
|
|
type Effect566 struct {
|
|
node.EffectNode
|
|
can bool
|
|
}
|
|
|
|
func init() {
|
|
ret := &Effect566{}
|
|
|
|
input.InitEffect(input.EffectType.Skill, 566, ret)
|
|
|
|
}
|
|
|
|
// 命中之后
|
|
func (e *Effect566) OnSkill() bool {
|
|
|
|
//e.Ctx().Opp.CancelTurn(e.Ctx().Our)
|
|
return true
|
|
}
|
|
func (e *Effect566) CalculatePre() bool {
|
|
if e.Ctx().SkillEntity == nil {
|
|
return true
|
|
}
|
|
|
|
if e.Ctx().SkillEntity.Category() == info.Category.PHYSICAL {
|
|
e.Ctx().Opp.CurPet[0].Info.Prop[2] = 0
|
|
} else {
|
|
e.Ctx().Opp.CurPet[0].Info.Prop[4] = 0
|
|
}
|
|
|
|
return true
|
|
}
|