Made indexes optional in play_effect's effectArray