30 lines
500 B
Go
30 lines
500 B
Go
package effect
|
|
|
|
import (
|
|
"blazing/logic/service/fight/action"
|
|
"blazing/logic/service/fight/input"
|
|
)
|
|
|
|
/**
|
|
* n回合内使用技能恢复m点体力值
|
|
*/
|
|
|
|
func init() {
|
|
|
|
input.InitEffect(input.EffectType.Skill, 77, &Effect77{})
|
|
|
|
}
|
|
|
|
// Effect 77: {0}回合内若使用技能则恢复{1}点体力值
|
|
type Effect77 struct {
|
|
RoundEffectSideArg0Base
|
|
}
|
|
|
|
// 默认添加回合
|
|
|
|
func (e *Effect77) OnSkill() bool {
|
|
|
|
e.Ctx().Our.Heal(e.Ctx().Our, &action.SelectSkillAction{}, e.Args()[1])
|
|
return true
|
|
}
|