33 lines
552 B
Go
33 lines
552 B
Go
package effect
|
|
|
|
import (
|
|
"blazing/logic/service/fight/info"
|
|
"blazing/logic/service/fight/input"
|
|
"blazing/logic/service/fight/node"
|
|
)
|
|
|
|
// Effect 428: 遇到天敌时附加{0}点固定伤害
|
|
type Effect428 struct {
|
|
node.EffectNode
|
|
}
|
|
|
|
func (e *Effect428) Skill_Use() bool {
|
|
|
|
if !e.ISNaturalEnemy() {
|
|
return true
|
|
}
|
|
|
|
damageZone := &info.DamageZone{
|
|
Type: info.DamageType.Fixed,
|
|
Damage: e.Args()[0],
|
|
}
|
|
e.Ctx().Opp.Damage(e.Ctx().Our, damageZone)
|
|
|
|
return true
|
|
}
|
|
|
|
func init() {
|
|
input.InitEffect(input.EffectType.Skill, 428, &Effect428{})
|
|
|
|
}
|