37 lines
615 B
Go
37 lines
615 B
Go
|
|
package effect
|
||
|
|
|
||
|
|
import (
|
||
|
|
"blazing/common/utils"
|
||
|
|
"blazing/logic/service/fight/input"
|
||
|
|
"blazing/logic/service/fight/node"
|
||
|
|
)
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 无视对手双防能力提升状态
|
||
|
|
*/
|
||
|
|
type Effect195 struct {
|
||
|
|
node.EffectNode
|
||
|
|
}
|
||
|
|
|
||
|
|
func init() {
|
||
|
|
ret := &Effect195{}
|
||
|
|
|
||
|
|
input.InitEffect(input.EffectType.Skill, 195, ret)
|
||
|
|
|
||
|
|
}
|
||
|
|
|
||
|
|
// 命中之后
|
||
|
|
func (e *Effect195) OnSkill() bool {
|
||
|
|
if !e.Hit() {
|
||
|
|
return true
|
||
|
|
}
|
||
|
|
e.Ctx().Opp.CancelTurn(e.Ctx().Our)
|
||
|
|
return true
|
||
|
|
}
|
||
|
|
func (e *Effect195) Skill_Hit() 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
|
||
|
|
}
|