2025-09-26 21:15:58 +00:00
|
|
|
|
package effect
|
|
|
|
|
|
|
|
|
|
|
|
import (
|
|
|
|
|
|
"blazing/logic/service/fight/info"
|
|
|
|
|
|
"blazing/logic/service/fight/input"
|
|
|
|
|
|
"blazing/logic/service/fight/node"
|
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
* m%令本方疲惫,n回合无法攻击
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
func init() {
|
|
|
|
|
|
input.InitEffect(input.EffectType.Skill, 20, &Effect20{})
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
type Effect20 struct {
|
|
|
|
|
|
node.EffectNode
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// 使用技能时,不可被继承,继承Miss和Hit就行
|
2025-10-05 00:29:22 +08:00
|
|
|
|
func (e *Effect20) OnSkill(input.Ctx) bool {
|
2025-09-26 21:15:58 +00:00
|
|
|
|
e.Input.AddEffect(input.Geteffect(input.EffectType.Status, int(info.PetStatus.Tired)))
|
2025-10-05 00:29:22 +08:00
|
|
|
|
return true
|
2025-09-26 21:15:58 +00:00
|
|
|
|
}
|