战斗修改
This commit is contained in:
@@ -30,11 +30,15 @@ type DrainHP struct {
|
||||
|
||||
func (e *DrainHP) OnTurnStart(opp *input.Input) {
|
||||
|
||||
e.Input.Damage(e.Input, info.DamageZone{
|
||||
e.Input.Damage(input.Ctx{
|
||||
|
||||
Type: info.DamageType.Red,
|
||||
Damage: decimal.NewFromUint64(uint64(opp.CurrentPet.Info.MaxHp)).
|
||||
Div(decimal.NewFromInt(8)),
|
||||
Input: opp,
|
||||
DamageZone: &info.DamageZone{
|
||||
|
||||
Type: info.DamageType.Red,
|
||||
Damage: decimal.NewFromUint64(uint64(opp.CurrentPet.Info.MaxHp)).
|
||||
Div(decimal.NewFromInt(8)),
|
||||
},
|
||||
})
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user