Files
bl/logic/service/fight/effect/effect_98.go

46 lines
790 B
Go
Raw Normal View History

package effect
import (
"blazing/logic/service/fight/info"
"blazing/logic/service/fight/input"
"blazing/logic/service/fight/node"
"github.com/alpacahq/alpacadecimal"
)
/**
*n回合内对雄性精灵的伤害为m倍
*/
func init() {
input.InitEffect(input.EffectType.Skill, 98, &Effect98{
EffectNode: node.EffectNode{},
})
}
type Effect98 struct {
node.EffectNode
}
func (e *Effect98) Damage_Mul(t *info.DamageZone) bool {
2026-02-08 17:57:42 +08:00
if e.Ctx().Opp.CurrentPet.Info.Gender != 1 {
return true
}
if t.Type == info.DamageType.Red {
t.Damage = t.Damage.Mul(alpacadecimal.NewFromInt(int64(e.SideEffectArgs[1])))
}
return true
}
func (e *Effect98) SetArgs(t *input.Input, a ...int) {
e.EffectNode.SetArgs(t, a...)
e.EffectNode.Duration(e.EffectNode.SideEffectArgs[0])
}