31 lines
507 B
Go
31 lines
507 B
Go
package effect
|
|
|
|
import (
|
|
"blazing/logic/service/fight/input"
|
|
"blazing/logic/service/fight/node"
|
|
)
|
|
|
|
// Effect 483: 对手{0},后出手时弱化效果翻倍
|
|
type Effect483 struct {
|
|
node.EffectNode
|
|
}
|
|
|
|
func (e *Effect483) OnSkill() bool {
|
|
for i, v := range e.SideEffectArgs {
|
|
if !e.IsFirst() { // 后出手
|
|
v = v * 2
|
|
}
|
|
if v == 0 {
|
|
continue
|
|
}
|
|
e.Ctx().Opp.SetProp(e.Ctx().Our, int8(i), int8(v))
|
|
|
|
}
|
|
|
|
return true
|
|
}
|
|
func init() {
|
|
input.InitEffect(input.EffectType.Skill, 483, &Effect483{})
|
|
|
|
}
|