So glad to hear, much love for riot <3
Oh sry, not to mislead. the smart logic section is not accurate to how that works, at least not literally. omnistone in general builds a table of all keystones it can grant, then rolls that table and removes the selected keystone. if the table has fewer than X entries, it refills the table.
Smart logic runs before rolling the table, and checks to see a variety of ideal situations in a specific order. if any ideal situation is found, it rolls a chance to grant the relevant keystone (chance* is higher if the keystone is not currently removed from the table). If that roll succeeds, it selects that keystone, removes it from the table, and stops searching subsequent situations. If nothing is found, it goes through and does the normal roll of the table
*Chance here is usually something like 15%||8%, but different situations can define how that is chosen (ie: glacial chance is significantly higher if you have a glacial item off CD)