Files
bl/logic/service/fight/effect/500.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

30 lines
540 B
Go

package effect
import (
"blazing/logic/service/fight/info"
"blazing/logic/service/fight/input"
"blazing/logic/service/fight/node"
)
// Effect 500: 若对手处于害怕状态则伤害翻倍
type Effect500 struct {
node.EffectNode
}
func (e *Effect500) SkillHit() bool {
if e.Ctx().SkillEntity == nil {
return true
}
if e.TargetInput().StatEffect_Exist(info.PetStatus.Fear) {
// 伤害翻倍
e.Ctx().SkillEntity.XML.Power *= 2
}
return true
}
func init() {
input.InitEffect(input.EffectType.Skill, 500, &Effect500{})
}