Skip to content

Commit be20051

Browse files
committed
fix(cooker): emerald benedict ffs
1 parent 3f53336 commit be20051

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

wasp_cooker.simba

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -382,11 +382,14 @@ begin
382382
RSInterface.Close(True);
383383
end;
384384

385-
if mapObj = nil then
386-
mapObj := Self.GetClosest();
385+
if mapObj = nil then mapObj := Self.GetClosest();
387386

388387
case mapObj^.MapObjectType of
389-
ERSMapObjectType.OBJ: Result := mapObj^.WalkClick() or (MainScreen.IsUpText(['Emerald', 'Benedict']) and ChooseOption.Select(['Bank B', 'Bank E']));
388+
ERSMapObjectType.OBJ:
389+
case CurrentLocation of
390+
ERSLocation.ROGUES_DEN: Result := mapObj^.WalkSelectOption(['Bank']) or (MainScreen.IsUpText('Emerald') and ChooseOption.Select(['Bank B', 'Bank E']));
391+
else Result := mapObj^.WalkClick() or (MainScreen.IsUpText('Banker') and ChooseOption.Select(['Bank B', 'Bank E']));
392+
end;
390393
ERSMapObjectType.NPC: Result := mapObj^.WalkSelectOption(['Bank B', 'Bank E']) or (MainScreen.IsUpText('Bank') and ChooseOption.Select(['Bank B', 'Bank E']));
391394
end;
392395

0 commit comments

Comments
 (0)