check standard restrictions out of run

ckb

Minion
Staff member
Is there a way in mafia to check if an item is available in standard, when you are not in a run?
If you are in run, is_unrestricted() works... but once you are out of run, everything is unrestricted.

Also,
visit_url("standard.php?date=2017-01-02")
seems to return a page with no items on it (same as standard.php with no arguments)
 

lostcalpolydude

Developer
Staff member
Is there a way in mafia to check if an item is available in standard, when you are not in a run?
If you are in run, is_unrestricted() works... but once you are out of run, everything is unrestricted.
There is not. It looks like your next statement means you were trying to check indirectly anyway...

Also,
visit_url("standard.php?date=2017-01-02")
seems to return a page with no items on it (same as standard.php with no arguments)

It needs to be GET instead of POST.
Code:
visit_url("standard.php?date=2017-01-02",false)
will do that.
 
Top