refactor(fight/effect): 重构技能命中处理逻辑,统一使用OnHit/OnMiss接口并新增Effect85偷取强化效果

This commit is contained in:
1
2025-09-25 18:13:16 +00:00
parent b62f956371
commit a2aaf7fff8
7 changed files with 99 additions and 12 deletions

View File

@@ -17,7 +17,7 @@ type Effect interface {
// OnSkillPP() bool //技能PP减少节点
AfterProp(t *Input)
BeferProp(in *Input, prop, level int, ptype info.EnumAbilityOpType) bool
BeferProp(in *Input, prop, level int8, ptype info.EnumAbilityOpType) bool
AfterAttr(t *info.BattlePetEntity) //在获取属性前,比如重写对方属性AfterAttr
BeferAttr(t *info.BattlePetEntity) //在获取属性后,比如视为对方属性
SetArgs(input *Input, param ...int)