refactor(fight/effect): 重构效果触发时机处理,统一命中前/后接口并移除冗余方法

This commit is contained in:
1
2025-09-24 20:01:12 +00:00
parent 3314c11b48
commit 5a8d84ed40
7 changed files with 22 additions and 42 deletions

View File

@@ -1,6 +1,7 @@
package effect
import (
"blazing/logic/service/fight/info"
"blazing/logic/service/fight/input"
"blazing/logic/service/fight/node"
)
@@ -23,7 +24,7 @@ func init() {
}
func (e *Effect62) SkillUseEnd(opp *input.Input) {
func (e *Effect62) AfterHit(*input.Input, *info.SkillEntity) {
if e.Duration() != 1 { //说明还没到生效节点
e.Hide = true //隐藏效果
} else {