35 lines
711 B
Go
35 lines
711 B
Go
package effect
|
|
|
|
import (
|
|
"blazing/logic/service/fight/info"
|
|
"blazing/logic/service/fight/input"
|
|
|
|
"github.com/alpacahq/alpacadecimal"
|
|
)
|
|
|
|
// Effect 419: {0}回合内若对手处于能力提升状态,则每回合都会受到{1}点固定伤害
|
|
type Effect419 struct {
|
|
RoundEffectArg0Base
|
|
}
|
|
|
|
func (e *Effect419) Skill_Use() bool {
|
|
if e.Ctx().Opp.HasPropADD() {
|
|
fixedDamage := alpacadecimal.NewFromInt(int64(e.Args()[1].IntPart())) // k点固定伤害
|
|
|
|
damageZone := &info.DamageZone{
|
|
Type: info.DamageType.Fixed,
|
|
Damage: fixedDamage,
|
|
}
|
|
e.Ctx().Opp.Damage(e.Ctx().Our, damageZone)
|
|
return true
|
|
|
|
}
|
|
|
|
return true
|
|
}
|
|
|
|
func init() {
|
|
input.InitEffect(input.EffectType.Skill, 419, &Effect419{})
|
|
|
|
}
|