30 lines
546 B
Go
30 lines
546 B
Go
package effect
|
|
|
|
import (
|
|
"blazing/logic/service/fight/info"
|
|
"blazing/logic/service/fight/input"
|
|
|
|
"github.com/alpacahq/alpacadecimal"
|
|
)
|
|
|
|
// T284.
|
|
type NewSel284 struct {
|
|
NewSel0
|
|
}
|
|
|
|
func (e *NewSel284) DamageDivEx(t *info.DamageZone) bool {
|
|
if e.ID().GetCatchTime() != e.Ctx().Our.CurPet[0].Info.CatchTime {
|
|
return true
|
|
}
|
|
|
|
if e.Ctx().SkillEntity.XML.Priority > 0 {
|
|
return true
|
|
}
|
|
//e.Ctx().SkillEntity.SetMiss()
|
|
t.Damage = alpacadecimal.Zero
|
|
return true
|
|
}
|
|
func init() {
|
|
input.InitEffect(input.EffectType.NewSel, 284, &NewSel284{})
|
|
}
|