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

@@ -1,6 +1,7 @@
package effect
import (
"blazing/logic/service/fight/info"
"blazing/logic/service/fight/input"
"blazing/logic/service/fight/node"
@@ -22,10 +23,13 @@ type Effect6 struct {
node.EffectNode
}
func (e *Effect6) Skill_Useed(ctx input.Ctx) bool {
// 我方使用效果
func (e *Effect6) Skill_Useed() bool {
ctx.DamageZone.Damage = ctx.DamageZone.Damage.Div(decimal.NewFromInt(int64(e.SideEffectArgs[0])))
e.Input.Damage(ctx)
e.Input.Damage(&info.DamageZone{
//这个对面计算前是在他的回合,所以后手也能拿到伤害
Damage: e.Ctx().Opp.DamageZone.Damage.Div(decimal.NewFromInt(int64(e.SideEffectArgs[0]))),
})
return true
}