fix(fight): 战斗修改

This commit is contained in:
1
2025-11-11 05:54:24 +00:00
parent c6e0d84c1d
commit 65758c799e
44 changed files with 656 additions and 731 deletions

View File

@@ -38,7 +38,7 @@ type EffectStat struct {
// -----------------------------------------------------------
// 技能触发时调用
// -----------------------------------------------------------
func (e *EffectStat) OnSkill(ctx input.Ctx) bool {
func (e *EffectStat) OnSkill() bool {
if !e.Hit() {
return true
}
@@ -74,10 +74,10 @@ func (e *EffectStat) OnSkill(ctx input.Ctx) bool {
// 执行属性变化
if e.Etype {
// 对方属性变化
ctx.SetProp(e.Input, int8(statIndex), int8(level), opType)
e.Ctx().Opp.SetProp(e.Ctx().Our, int8(statIndex), int8(level), opType)
} else {
// 自身属性变化
e.Input.SetProp(e.Input, int8(statIndex), int8(level), opType)
e.Ctx().Our.SetProp(e.Ctx().Our, int8(statIndex), int8(level), opType)
}
return true