2026-03-09 00:07:19 +08:00
|
|
|
package effect
|
|
|
|
|
|
|
|
|
|
import (
|
|
|
|
|
"blazing/logic/service/fight/input"
|
|
|
|
|
"blazing/logic/service/fight/node"
|
|
|
|
|
)
|
|
|
|
|
|
2026-03-28 21:57:22 +08:00
|
|
|
// Effect 468: 回合开始时,若自身处于能力下降状态,则威力翻倍,同时解除能力下降状态
|
2026-03-09 00:07:19 +08:00
|
|
|
type Effect468 struct {
|
|
|
|
|
node.EffectNode
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (e *Effect468) SkillHit() bool {
|
|
|
|
|
if e.Ctx().SkillEntity == nil {
|
|
|
|
|
return true
|
|
|
|
|
}
|
|
|
|
|
ispwoer := false
|
|
|
|
|
for i, v := range e.Ctx().Our.Prop[:] {
|
|
|
|
|
if v < 0 {
|
|
|
|
|
e.Ctx().Our.SetProp(e.Ctx().Our, int8(i), 0)
|
|
|
|
|
ispwoer = true
|
2026-03-10 16:02:38 +08:00
|
|
|
|
2026-03-09 00:07:19 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if ispwoer {
|
|
|
|
|
// 威力翻倍
|
2026-03-09 18:49:51 +08:00
|
|
|
e.Ctx().SkillEntity.XML.Power *= 2
|
2026-03-09 00:07:19 +08:00
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return true
|
|
|
|
|
}
|
|
|
|
|
func init() {
|
|
|
|
|
input.InitEffect(input.EffectType.Skill, 468, &Effect468{})
|
|
|
|
|
|
|
|
|
|
}
|