35 lines
642 B
Go
35 lines
642 B
Go
package effect
|
|
|
|
import (
|
|
"blazing/logic/service/fight/info"
|
|
"blazing/logic/service/fight/input"
|
|
|
|
"github.com/alpacahq/alpacadecimal"
|
|
)
|
|
|
|
// T84. 只有致命一击能造成伤害
|
|
type NewSel184 struct {
|
|
NewSel0
|
|
}
|
|
|
|
func (e *NewSel184) DamageDivEx(t *info.DamageZone) bool {
|
|
if e.ID().GetCatchTime() != e.Ctx().Our.CurPet[0].Info.CatchTime {
|
|
return true
|
|
}
|
|
|
|
if e.Ctx().SkillEntity == nil {
|
|
return true
|
|
}
|
|
if t.Type != info.DamageType.Red {
|
|
return true
|
|
}
|
|
if e.Ctx().SkillEntity.Crit > 0 {
|
|
return true
|
|
}
|
|
t.Damage = alpacadecimal.Zero
|
|
return true
|
|
}
|
|
func init() {
|
|
input.InitEffect(input.EffectType.NewSel, 184, &NewSel184{})
|
|
}
|