This commit is contained in:
@@ -22,6 +22,12 @@ func (e *NewSel0) SwitchOut(in *input.Input) bool {
|
||||
return true
|
||||
}
|
||||
func (e *NewSel0) IsOwner() bool {
|
||||
if e.Ctx().Our == nil {
|
||||
return false
|
||||
}
|
||||
if e.Ctx().Our.CurrentPet == nil {
|
||||
return false
|
||||
}
|
||||
return e.ID().GetCatchTime() == e.Ctx().Our.CurrentPet.Info.CatchTime
|
||||
}
|
||||
|
||||
|
||||
@@ -14,9 +14,10 @@ type NewSel65 struct {
|
||||
}
|
||||
|
||||
func (e *NewSel65) DamageAdd(t *info.DamageZone) bool {
|
||||
if e.ID().GetCatchTime() != e.Ctx().Our.CurrentPet.Info.CatchTime {
|
||||
if !e.IsOwner() {
|
||||
return true
|
||||
}
|
||||
|
||||
if e.Ctx().SkillEntity == nil {
|
||||
return true
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user