fix(fight): 修复空变更提交问题
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user