fix(fight): 修复空变更提交问题

This commit is contained in:
1
2025-11-12 13:44:21 +00:00
parent 0b5cfac0b2
commit 6c98a678ff
13 changed files with 57 additions and 52 deletions

View File

@@ -61,10 +61,10 @@ type DrainHP struct {
}
func (e *DrainHP) Skill_Hit_Pre() bool {
e.damage = decimal.NewFromUint64(uint64(e.Input.CurrentPet.Info.MaxHp)).
e.damage = decimal.NewFromUint64(uint64(e.Ctx().Our.CurrentPet.Info.MaxHp)).
Div(decimal.NewFromInt(8))
e.Input.Damage(&info.DamageZone{
e.Ctx().Our.Damage(e.Input, &info.DamageZone{
Type: info.DamageType.True,
Damage: e.damage,
@@ -87,7 +87,7 @@ func (e *DrainedHP) Skill_Hit_Pre() bool {
//TODO 寄生种子 给对面回血待实现回血buff
//这个回血不属于任何类型,所以不会被阻止回血
e.Ctx().Opp.Heal(nil, e.damage)
e.Ctx().Opp.Heal(e.Ctx().Our, nil, e.damage)
// input.CurrentPet.Info.Hp = -e.Input.CurrentPet.Info.MaxHp / 8
return true