In recent update multiple cards were fixed, because they didn't use the anti-flood system properly. Now, I revised the code which is responsible for all the random decisions (card drawing, AI...). I found a small mistake. While most of the code use
mt_rand() function, which is considered to be reliable, there are parts of the code that use
array_rand() function. Array_rand() function uses rand() instead of mt_rand() which is slower and less reliable. I replaced the array_rand() function with array_mt_rand() function which uses mt_rand() function and thus, is reliable.
Here is a list of effected features:
- random starter deck pick for AI
- random deck selection for player
- AI decision making algorithm (when picking one from same value decisions)
- card summoning from specified list of cards
Changes will be applied in the next update.