diff --git a/logic/service/fight/effect/effect_93.go b/logic/service/fight/effect/effect_93.go index f8c73efb4..896f14330 100644 --- a/logic/service/fight/effect/effect_93.go +++ b/logic/service/fight/effect/effect_93.go @@ -4,8 +4,6 @@ import ( "blazing/logic/service/fight/info" "blazing/logic/service/fight/input" "blazing/logic/service/fight/node" - - "github.com/alpacahq/alpacadecimal" ) /** @@ -13,9 +11,7 @@ import ( */ func init() { - input.InitEffect(input.EffectType.Skill, 93, &Effect93{ - EffectNode: node.EffectNode{}, - }) + input.InitEffect(input.EffectType.Skill, 93, &Effect93{}) } @@ -23,7 +19,7 @@ type Effect93 struct { node.EffectNode } -func (e *Effect93) OnSkill() bool { +func (e *Effect93) Skill_Use() bool { // 概率判定 ok, _, _ := e.Input.Player.Roll(int(e.Args()[0].IntPart()), 100) @@ -32,7 +28,7 @@ func (e *Effect93) OnSkill() bool { } e.Ctx().Opp.Damage(e.Ctx().Our, &info.DamageZone{ Type: info.DamageType.Fixed, - Damage: alpacadecimal.NewFromInt(int64(e.SideEffectArgs[1])), + Damage: e.Args()[1], }) return true }