Teleport doesn't fail anymore if opp is faster

This commit is contained in:
JappaWakka 2023-01-18 20:13:04 +01:00
parent 7e7dae0d20
commit b8ffdb73c3
2 changed files with 5 additions and 1 deletions

View File

@ -676,7 +676,7 @@
Return False Return False
End Function End Function
Public Shared Function CanRun(ByVal own As Boolean, ByVal BattleScreen As BattleScreen) As Boolean Public Shared Function CanRun(ByVal own As Boolean, ByVal BattleScreen As BattleScreen, Optional ByVal IsEscapeMove As Boolean = False) As Boolean
If BattleScreen.BattleMode = BattleScreen.BattleModes.Safari Then If BattleScreen.BattleMode = BattleScreen.BattleModes.Safari Then
Return True Return True
End If End If
@ -736,6 +736,10 @@
Return False Return False
End If End If
If IsEscapeMove = True Then
Return True
End If
If p.Speed > op.Speed Then If p.Speed > op.Speed Then
Return True Return True
Else Else