Skip to content

Commit

Permalink
Fix for spell filtering
Browse files Browse the repository at this point in the history
A new column was added that seemed to throw off the grid search for spell filtering
  • Loading branch information
GalacticPolarBear committed Sep 11, 2023
1 parent 1837ff9 commit 0b7c5e4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions osr/interfaces/gametabs/magic.simba
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ begin

b := Self.Bounds();

tba := Grid(1, 6, 179, 24, [0, 1], [b.X1+2, b.Y1 + 53]);
tba := Grid(1, 7, 179, 24, [0, 1], [b.X1+2, b.Y1 + 45]);

SetLength(Result, Length(tba));

Expand Down Expand Up @@ -251,7 +251,7 @@ Example
function TRSMagic.IsFiltered(): Boolean;
begin
if Self.FiltersIsOpen() then
Exit(SRL.CountColor(CTS2(5945703, 20, 0.05, 0.58), Self.Bounds()) <> 222);
Exit(SRL.CountColor(CTS2(5945703, 20, 0.05, 0.58), Self.Bounds()) <> 259);

Result := Self.CountSpells() <> Self.GetBookSpellCount();
end;
Expand Down

0 comments on commit 0b7c5e4

Please sign in to comment.