36 lines
770 B
Go
36 lines
770 B
Go
package effect
|
||
|
||
import (
|
||
"blazing/logic/service/fight/info"
|
||
"blazing/logic/service/fight/input"
|
||
)
|
||
|
||
// 54. 每回合结束后,敌我双方扣除n体力值(a1: n)
|
||
type NewSel54 struct {
|
||
NewSel0
|
||
}
|
||
|
||
func (e *NewSel54) Skill_Use_ex() bool {
|
||
//魂印特性有不在场的情况,绑定时候将精灵和特性绑定
|
||
if e.ID().GetCatchTime() != e.Ctx().Our.CurrentPet[0].Info.CatchTime {
|
||
return true
|
||
}
|
||
|
||
// 扣除我方体力
|
||
e.Ctx().Our.Damage(e.Ctx().Our, &info.DamageZone{
|
||
Type: info.DamageType.Fixed,
|
||
Damage: e.Args()[0],
|
||
})
|
||
|
||
// 扣除敌方体力
|
||
e.Ctx().Opp.Damage(e.Ctx().Opp, &info.DamageZone{
|
||
Type: info.DamageType.Fixed,
|
||
Damage: e.Args()[0],
|
||
})
|
||
return true
|
||
}
|
||
|
||
func init() {
|
||
input.InitEffect(input.EffectType.NewSel, 54, &NewSel54{})
|
||
}
|