fix(fight): 战斗修改
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user