Files
bl/logic/service/fight/effect/188.go
xinian 78a68148ce
Some checks failed
ci/woodpecker/push/my-first-workflow Pipeline failed
chore: update fight logic and effect implementations
2026-04-05 02:25:44 +08:00

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{})
}