32 lines
670 B
Go
32 lines
670 B
Go
package effect
|
|
|
|
import (
|
|
"blazing/logic/service/fight/input"
|
|
"blazing/logic/service/fight/node"
|
|
)
|
|
|
|
// Effect 188: 若对手处于异常状态,则威力翻倍并消除对手相应的防御能力提升效果
|
|
type Effect188 struct {
|
|
node.EffectNode
|
|
}
|
|
|
|
func (e *Effect188) SkillHit() bool {
|
|
if e.Ctx().SkillEntity == nil {
|
|
return true
|
|
}
|
|
|
|
if e.TargetInput().StatEffect_Exist_all() { // 对手处于异常状态
|
|
// 威力翻倍
|
|
e.Ctx().SkillEntity.XML.Power *= 2
|
|
|
|
// 消除对手相应的防御能力提升效果
|
|
e.TargetInput().SetProp(e.CarrierInput(), 1, 0)
|
|
}
|
|
|
|
return true
|
|
}
|
|
func init() {
|
|
input.InitEffect(input.EffectType.Skill, 188, &Effect188{})
|
|
|
|
}
|