fix(fight): 战斗修改
This commit is contained in:
@@ -23,14 +23,14 @@ type Effect31 struct {
|
||||
node.EffectNode
|
||||
}
|
||||
|
||||
func (e *Effect31) Damage_Mul(ctx input.Ctx) bool {
|
||||
func (e *Effect31) Damage_Mul() bool {
|
||||
if !e.Hit() {
|
||||
return true
|
||||
}
|
||||
|
||||
if ctx.DamageZone.Type == info.DamageType.Red {
|
||||
if e.Ctx().DamageZone.Type == info.DamageType.Red {
|
||||
n := int(e.Input.FightC.GetRand().Int31n(int32(e.SideEffectArgs[1]-e.SideEffectArgs[0]+1))) + e.SideEffectArgs[0]
|
||||
ctx.DamageZone.Damage = ctx.DamageZone.Damage.Mul(decimal.NewFromInt(int64(n)))
|
||||
e.Ctx().Our.DamageZone.Damage = e.Ctx().Our.DamageZone.Damage.Mul(decimal.NewFromInt(int64(n)))
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user