37 lines
666 B
Go
37 lines
666 B
Go
package effect
|
|
|
|
import (
|
|
"blazing/logic/service/fight/info"
|
|
"blazing/logic/service/fight/input"
|
|
)
|
|
|
|
// Effect 560: 下回合其他攻击技能附加{0}点固定伤害
|
|
type Effect560 struct {
|
|
RoundEffectArg0Base
|
|
triggered bool
|
|
}
|
|
|
|
func (n *Effect560) OnSkill() bool {
|
|
|
|
if !n.triggered {
|
|
n.triggered = true
|
|
|
|
} else {
|
|
|
|
// 添加固定伤害到技能伤害中
|
|
damageZone := &info.DamageZone{
|
|
Type: info.DamageType.Fixed,
|
|
Damage: n.Args()[0],
|
|
}
|
|
|
|
// 对对手造成额外固定伤害
|
|
n.Ctx().Opp.Damage(n.Ctx().Our, damageZone)
|
|
}
|
|
return true
|
|
}
|
|
|
|
// SetArgs 设置参数
|
|
func init() {
|
|
input.InitEffect(input.EffectType.Skill, 560, &Effect560{})
|
|
}
|