33 lines
606 B
Go
33 lines
606 B
Go
package effect
|
|
|
|
import (
|
|
"blazing/common/utils"
|
|
"blazing/logic/service/fight/input"
|
|
"blazing/logic/service/fight/node"
|
|
)
|
|
|
|
// Effect 195: 无视对手双防能力提升状态
|
|
type Effect195 struct {
|
|
node.EffectNode
|
|
}
|
|
|
|
func init() {
|
|
ret := &Effect195{}
|
|
|
|
input.InitEffect(input.EffectType.Skill, 195, ret)
|
|
|
|
}
|
|
|
|
// // 命中之后
|
|
// func (e *Effect195) OnSkill() bool {
|
|
|
|
// e.Ctx().Opp.CancelTurn(e.Ctx().Our)
|
|
// return true
|
|
// }
|
|
func (e *Effect195) CalculatePre() bool {
|
|
|
|
e.Ctx().Opp.Prop[1] = utils.Min(e.Ctx().Opp.Prop[1], 0)
|
|
e.Ctx().Opp.Prop[3] = utils.Min(e.Ctx().Opp.Prop[3], 0)
|
|
return true
|
|
}
|