2026-03-07 23:54:01 +08:00
|
|
|
|
package effect
|
|
|
|
|
|
|
|
|
|
|
|
import (
|
|
|
|
|
|
"blazing/logic/service/fight/action"
|
|
|
|
|
|
"blazing/logic/service/fight/info"
|
|
|
|
|
|
"blazing/logic/service/fight/input"
|
|
|
|
|
|
)
|
|
|
|
|
|
|
2026-03-28 21:57:22 +08:00
|
|
|
|
// Effect 187: {0}回合内若对手使用属性技能,则自身恢复1/{1}最大体力值
|
2026-03-07 23:54:01 +08:00
|
|
|
|
type Effect187 struct {
|
2026-03-28 21:57:22 +08:00
|
|
|
|
RoundEffectArg0Base
|
2026-03-07 23:54:01 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
func (e *Effect187) Skill_Use_ex() bool {
|
|
|
|
|
|
if e.Ctx().SkillEntity != nil && e.Ctx().SkillEntity.Category() == info.Category.STATUS {
|
|
|
|
|
|
maxHp := e.Ctx().Our.CurrentPet.GetMaxHP()
|
|
|
|
|
|
healAmount := maxHp.Div(e.Args()[1]) // 1/m
|
|
|
|
|
|
|
|
|
|
|
|
e.Ctx().Our.Heal(e.Ctx().Our, &action.SelectSkillAction{}, healAmount)
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
return true
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
func init() {
|
2026-03-10 20:51:48 +08:00
|
|
|
|
input.InitEffect(input.EffectType.Skill, 187, &Effect187{})
|
2026-03-07 23:54:01 +08:00
|
|
|
|
}
|