39 lines
681 B
Go
39 lines
681 B
Go
package effect
|
|
|
|
import (
|
|
"blazing/logic/service/fight/info"
|
|
"blazing/logic/service/fight/input"
|
|
)
|
|
|
|
/**
|
|
* 439
|
|
*/
|
|
|
|
func init() {
|
|
|
|
input.InitEffect(input.EffectType.Skill, 439, &Effect439{})
|
|
|
|
}
|
|
|
|
// Effect 439: {0}回合内若自身处于能力下降或异常状态,则对手每回合受到{1}点固定伤害
|
|
type Effect439 struct {
|
|
RoundEffectSideArg0Base
|
|
}
|
|
|
|
func (e *Effect439) Skill_Use() bool {
|
|
var isprop bool
|
|
for _, v := range e.Ctx().Our.Prop {
|
|
if v < 0 {
|
|
isprop = true
|
|
}
|
|
}
|
|
if e.Ctx().Our.StatEffect_Exist_all() || isprop {
|
|
e.Ctx().Opp.Damage(e.Ctx().Our, &info.DamageZone{
|
|
Type: info.DamageType.Fixed,
|
|
Damage: e.Args()[1],
|
|
})
|
|
}
|
|
|
|
return true
|
|
}
|