Revert "Fix registered trainers still do in sight check"
This reverts commit b7a045e37c
.
This commit is contained in:
parent
b7a045e37c
commit
464c317d2f
|
@ -352,7 +352,7 @@
|
|||
|
||||
If distance <= Me.TrainerSight Then
|
||||
Dim InSightMusic As String = "nomusic"
|
||||
Dim t As Trainer = Nothing
|
||||
|
||||
If Me.IsTrainer = True Then
|
||||
Dim trainerFilePath As String = GameModeManager.GetScriptPath(Me.AdditionalValue & ".dat")
|
||||
Security.FileValidation.CheckFileValid(trainerFilePath, False, "NPC.vb")
|
||||
|
@ -365,7 +365,7 @@
|
|||
If Trainer.IsBeaten(trainerID) = True Then
|
||||
Exit Sub
|
||||
Else
|
||||
t = New Trainer(trainerID)
|
||||
Dim t As New Trainer(trainerID)
|
||||
InSightMusic = t.GetInSightMusic()
|
||||
End If
|
||||
ElseIf l.StartsWith("@battle.starttrainer(") = True Then
|
||||
|
@ -373,13 +373,13 @@
|
|||
If Trainer.IsBeaten(trainerID) = True Then
|
||||
Exit Sub
|
||||
Else
|
||||
t = New Trainer(trainerID)
|
||||
Dim t As New Trainer(trainerID)
|
||||
InSightMusic = t.GetInSightMusic()
|
||||
End If
|
||||
End If
|
||||
Next
|
||||
End If
|
||||
If t IsNot Nothing Then
|
||||
|
||||
Dim needFacing As Integer = 0
|
||||
Select Case Me.faceRotation
|
||||
Case 0
|
||||
|
@ -446,7 +446,6 @@
|
|||
End If
|
||||
End If
|
||||
End If
|
||||
End If
|
||||
End Sub
|
||||
|
||||
Public Overrides Sub ClickFunction()
|
||||
|
|
Loading…
Reference in New Issue