Files
bl/logic/service/fight/effect/effect_566.go

43 lines
708 B
Go
Raw Normal View History

package effect
import (
"blazing/logic/service/fight/info"
"blazing/logic/service/fight/input"
"blazing/logic/service/fight/node"
)
/**
* 无视对手双防能力提升状态
*/
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.CurrentPet.Info.Prop[2] = 0
} else {
e.Ctx().Opp.CurrentPet.Info.Prop[4] = 0
}
return true
}