2025-11-13 21:36:18 +08:00
|
|
|
package effect
|
|
|
|
|
|
|
|
|
|
import (
|
|
|
|
|
"blazing/logic/service/fight/action"
|
2025-11-13 23:06:55 +08:00
|
|
|
"blazing/logic/service/fight/info"
|
2025-11-13 21:36:18 +08:00
|
|
|
"blazing/logic/service/fight/input"
|
|
|
|
|
"blazing/logic/service/fight/node"
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 下n回合自身攻击技能必定打出致命一击
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
func init() {
|
2025-11-13 23:06:55 +08:00
|
|
|
input.InitEffect(input.EffectType.Skill, 58, &Effect58{})
|
2025-11-13 21:36:18 +08:00
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type Effect58 struct {
|
|
|
|
|
node.EffectNode
|
2025-11-14 23:09:16 +08:00
|
|
|
Can bool
|
2025-11-13 21:36:18 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (e *Effect58) OnSkill() bool {
|
2026-01-04 21:41:10 +08:00
|
|
|
|
2025-11-14 23:09:16 +08:00
|
|
|
e.Can = true
|
2025-11-13 21:36:18 +08:00
|
|
|
|
|
|
|
|
return true
|
|
|
|
|
}
|
|
|
|
|
|
2026-01-05 23:00:42 +08:00
|
|
|
func (e *Effect58) ActionStart(a, b *action.SelectSkillAction) bool {
|
2026-01-04 21:41:10 +08:00
|
|
|
|
2025-11-14 23:09:16 +08:00
|
|
|
if !e.Can {
|
2025-11-13 21:36:18 +08:00
|
|
|
return true
|
|
|
|
|
}
|
2025-11-13 23:06:55 +08:00
|
|
|
//fmt.Println(e.Ctx().SkillEntity)
|
|
|
|
|
if e.Ctx().SkillEntity == nil {
|
|
|
|
|
return true
|
|
|
|
|
}
|
|
|
|
|
if e.Ctx().SkillEntity.Category() == info.Category.STATUS {
|
|
|
|
|
return true
|
|
|
|
|
}
|
2026-03-09 18:49:51 +08:00
|
|
|
e.Ctx().SkillEntity.XML.CritRate = 16
|
2025-11-13 21:36:18 +08:00
|
|
|
|
|
|
|
|
return true
|
|
|
|
|
}
|
2025-11-13 23:06:55 +08:00
|
|
|
func (e *Effect58) SetArgs(t *input.Input, a ...int) {
|
|
|
|
|
|
|
|
|
|
e.EffectNode.SetArgs(t, a...)
|
|
|
|
|
e.EffectNode.Duration(e.EffectNode.SideEffectArgs[0])
|
|
|
|
|
|
|
|
|
|
}
|